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, |