| Code-Review | +1 |
if (browser != browser_) {
return;
}nit: maybe add a CHECK here.
if (browser != browser_.get()) {
return;
}nit: Maybe add a CHECK here.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (browser != browser_) {
return;
}nit: maybe add a CHECK here.
Done
if (browser != browser_.get()) {
return;
}nit: Maybe add a CHECK here.
I tend to leave it like this because the `browser_` is no longer stored as a class memeber.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Overall looks good just one comment
if (pending_context_disposals_.empty())
browser_collection_observation_.Observe(
GlobalBrowserCollection::GetInstance());nit: Can we use curly braces for this condition? (new guidance)
if (pending_context_disposals_.empty())
browser_collection_observation_.Reset();nit: Curly braces here also
class BrowserDeactivationWaiter {Can we remove this class? It looks like we don't have any clients for this. If we need to keep it could we update the constructor param to be a non-const BWI pointer? (to remove the const_cast)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (pending_context_disposals_.empty())
browser_collection_observation_.Observe(
GlobalBrowserCollection::GetInstance());nit: Can we use curly braces for this condition? (new guidance)
Done
if (pending_context_disposals_.empty())
browser_collection_observation_.Reset();nit: Curly braces here also
Done
Can we remove this class? It looks like we don't have any clients for this. If we need to keep it could we update the constructor param to be a non-const BWI pointer? (to remove the const_cast)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[bedrock] Migrate BrowserListObserver to BrowserCollectionObserver - part 8/n
This migration is part of project bedrock to reduce the dependencies on
Browser and BrowserList. See https://crbug.com/431671320 for more info.
| 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. |