Overall looks good - just a comment on the collection method impl. Hihdehiko could you ptal for chromeos also?
return (browser && browser->IsActive()) ? browser : nullptr;This should be `browser->GetWindow()->IsActive()` to match the impl in [browser_finder](https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/browser_finder.cc) (which I believe will address the broken tests).
I also believe `BWI::GetWindow` and `BaseWindow::IsActive()` is available on android so we can drop the build-guards.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
return (browser && browser->IsActive()) ? browser : nullptr;This should be `browser->GetWindow()->IsActive()` to match the impl in [browser_finder](https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ui/browser_finder.cc) (which I believe will address the broken tests).
I also believe `BWI::GetWindow` and `BaseWindow::IsActive()` is available on android so we can drop the build-guards.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
size_t GetTabbedBrowserCount(Profile* profile) {
size_t count = 0;
ProfileBrowserCollection::GetForProfile(profile)->ForEach(
[&](BrowserWindowInterface* browser) {
if (browser->GetType() == BrowserWindowInterface::TYPE_NORMAL) {
count++;
}
return true;
});
return count;
}If this change is unnecessary, it can be split into another CL.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
size_t GetTabbedBrowserCount(Profile* profile) {
size_t count = 0;
ProfileBrowserCollection::GetForProfile(profile)->ForEach(
[&](BrowserWindowInterface* browser) {
if (browser->GetType() == BrowserWindowInterface::TYPE_NORMAL) {
count++;
}
return true;
});
return count;
}If this change is unnecessary, it can be split into another CL.
| 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. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[bedrock] Migrate FindBrowserWithActiveWindow() To GBC
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |