Heya folks, mind taking a look?
Patrick: resource_coordinator
Darryl: c/b/ui
Thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
c/b/ui lgtm % waiting on area owner to approve first 😄
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
auto auto_reset = base::AutoReset<raw_ptr<TabStripModel>>(
&focused_tab_strip_model_for_testing_, tab_strip);Before this change, to reset the tab strip model, you had to call SetFocusedTabStripModelForTesting() again, which would invoke UpdateFocusedTab().
Now this UpdateFocusedTab() call is gone.
Is that intentional?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
auto auto_reset = base::AutoReset<raw_ptr<TabStripModel>>(
&focused_tab_strip_model_for_testing_, tab_strip);Before this change, to reset the tab strip model, you had to call SetFocusedTabStripModelForTesting() again, which would invoke UpdateFocusedTab().
Now this UpdateFocusedTab() call is gone.
Is that intentional?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
[Resource Coordinator] Use an AutoReset for testing focused tab stripfix this commit message, here and below, as you're no longer using AutoReset
base::ScopedClosureRunner SetFocusedTabStripModelForTesting(add [[nodiscard]]
#include "base/auto_reset.h"remove unused header.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks, Patrick!
Back to you for the stamp, Darryl : )
[Resource Coordinator] Use an AutoReset for testing focused tab stripfix this commit message, here and below, as you're no longer using AutoReset
Done
base::ScopedClosureRunner SetFocusedTabStripModelForTesting(Devlin Croninadd [[nodiscard]]
Done
#include "base/auto_reset.h"Devlin Croninremove unused header.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| 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. |
[Resource Coordinator] Use an AutoReset for testing focused tab strip
Use a ScopedClosureRunner in the SetFocusedTabStripModelForTesting()
method in TabLifecycleUnitSource. This prevents tests from having to
remember to reset the variable (which can be important, since it's
global state attached to the BrowserProcess).
Update all callers as appropriate.
As a bonus, this also fixes the dangling pointer associated with the
overridden focused tab strip.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |