Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Unified Diff: chrome/browser/profiles/profile_window.cc

Issue 2057203002: Bringing back fast user switching on desktop user menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Anthony's comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_window.h ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_window.cc
diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc
index dbf14c4965c3efd029e36b082551c9cadb877ef2..d0e90096bede3385136ff3e6dc5c640ae7c714f7 100644
--- a/chrome/browser/profiles/profile_window.cc
+++ b/chrome/browser/profiles/profile_window.cc
@@ -360,7 +360,7 @@ void CreateAndSwitchToNewProfile(ProfileManager::CreateCallback callback,
ProfileMetrics::LogProfileAddNewUser(metric);
}
-void GuestBrowserCloseSuccess(const base::FilePath& profile_path) {
+void ProfileBrowserCloseSuccess(const base::FilePath& profile_path) {
UserManager::Show(base::FilePath(),
profiles::USER_MANAGER_NO_TUTORIAL,
profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION);
@@ -373,7 +373,7 @@ void CloseGuestProfileWindows() {
if (profile) {
BrowserList::CloseAllBrowsersWithProfile(
- profile, base::Bind(&GuestBrowserCloseSuccess));
+ profile, base::Bind(&ProfileBrowserCloseSuccess));
}
}
@@ -441,6 +441,12 @@ bool IsLockAvailable(Profile* profile) {
return false;
}
+void CloseProfileWindows(Profile* profile) {
+ DCHECK(profile);
+ BrowserList::CloseAllBrowsersWithProfile(
+ profile, base::Bind(&ProfileBrowserCloseSuccess));
+}
+
void CreateSystemProfileForUserManager(
const base::FilePath& profile_path_to_focus,
profiles::UserManagerTutorialMode tutorial_mode,
« no previous file with comments | « chrome/browser/profiles/profile_window.h ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698