| Auto-Submit | +1 |
| Commit-Queue | +1 |
void CloseAllBrowsers();Yu HeLet's move this to application_lifetime also and keep the profile param. Sorry for the code churn but it'll be helpful to have all lifetime-related APIs in the same location.
agree
| 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. |
void CloseAllBrowsers();Yu HeLet's move this to application_lifetime also and keep the profile param. Sorry for the code churn but it'll be helpful to have all lifetime-related APIs in the same location.
agree
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +0 |
| 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. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[bedrock] Move CloseAllBrowsersWithProfile(Profile*) to application_lifetime_desktop
Per review feedback, relocates the single-argument helper
chrome::CloseAllBrowsersWithProfile(Profile* profile)
from chrome/browser/ui/browser_finder.{h,cc} to
chrome/browser/lifetime/application_lifetime_desktop.{h,cc} so that all
desktop browser-lifetime APIs live in one place. The helper is now
co-located with its four-argument overload
CloseAllBrowsersWithProfile(profile, skip_beforeunload,
on_close_success, on_close_aborted)
the off-the-record variant CloseAllBrowsersWithIncognitoProfile(), and
related entry points such as CloseAllBrowsersAndQuit() and
AttemptRestartWithMode().
The function body is moved verbatim: it still looks up the per-profile
BrowserCollection via ProfileBrowserCollection::GetForProfile(profile),
no-ops when the collection has not been created, and asks every browser
whose original profile matches `profile` to close. The close is
asynchronous and does not run beforeunload handlers or trigger
session-service shutdown; callers that need those semantics should use
the four-argument overload, whose location and behavior are unchanged.
Caller includes are updated from "chrome/browser/ui/browser_finder.h" to
"chrome/browser/lifetime/application_lifetime_desktop.h":
- chrome/browser/profiles/avatar_menu_browsertest.cc
- chrome/browser/profiles/profile_browsertest.cc
- chrome/browser/ui/blocked_content/popup_tracker_browsertest.cc
- chrome/browser/ui/views/profiles/profile_picker_view_browsertest.cc
No behavior change.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |