| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM with request
tab_model->CreateTab(tab_android(), second_web_contents, /*index=*/-1,Can we have a `TabModel::kInvalidIndex` constant for this rather than -1? Then you can also drop the `index` comment.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
Fixed TabStatsTrackerBrowserTest.
PTAL, thanks! (Lost +1)
tab_model->CreateTab(tab_android(), second_web_contents, /*index=*/-1,Can we have a `TabModel::kInvalidIndex` constant for this rather than -1? Then you can also drop the `index` comment.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm!
// Keep this in sync with
// chrome/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/TabList.java
static constexpr int kInvalidIndex = -1;optional: Not sure if this will apply into android targets but if `LINT` guards are available I recommend using them in this case. That way the presubmit warnings will automatically flag changes in the future.
Ex:
```
// LINT.IfChange(kInvalidIndex)
static constexpr int kInvalidIndex = -1;
// LINT.ThenChange(//chrome/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/TabList.java)
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
// Keep this in sync with
// chrome/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/TabList.java
static constexpr int kInvalidIndex = -1;optional: Not sure if this will apply into android targets but if `LINT` guards are available I recommend using them in this case. That way the presubmit warnings will automatically flag changes in the future.
Ex:
```
// LINT.IfChange(kInvalidIndex)static constexpr int kInvalidIndex = -1;
// LINT.ThenChange(//chrome/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/TabList.java)
```
Thanks! Looking at clank files, I think they are
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
8 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: chrome/browser/ui/android/tab_model/tab_model.h
Insertions: 2, Deletions: 0.
@@ -44,9 +44,11 @@
public:
DECLARE_USER_DATA(TabModel);
+ // LINT.IfChange(kInvalidIndex)
// Keep this in sync with
// chrome/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/TabList.java
static constexpr int kInvalidIndex = -1;
+ // LINT.ThenChange(//chrome/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/TabList.java:INVALID_TAB_INDEX)
// LINT.IfChange(TabLaunchType)
// Various ways tabs can be launched.
```
```
The name of the file: chrome/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/TabList.java
Insertions: 3, Deletions: 0.
@@ -16,9 +16,12 @@
@MockedInTests // Needed due to R8's computeDelayedInterfaceMethodSyntheticBridges. b/147584922
@NullMarked
public interface TabList extends Iterable<Tab> {
+ // LINT.IfChange(INVALID_TAB_INDEX)
// Keep this in sync with chrome/browser/ui/android/tab_model/tab_model.h
int INVALID_TAB_INDEX = -1;
+ // LINT.ThenChange(//chrome/browser/ui/android/tab_model/tab_model.h:kInvalidIndex)
+
/**
* TODO(crbug.com/350654700): clean up usages and remove isIncognito.
*
```
[TabModel] Include index and pinned state in CreateTab
This adds index and pinned state in the TabModel#CreateTab signature
(C++). Follow-up CL actually implements this on Java.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |