Index: chrome/browser/chromeos/login/login_utils.cc |
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc |
index 24cc11f623962922cf0032b5df469a883688ba11..6652cb68f9a290cb4a371a68393a3461ea0d9f12 100644 |
--- a/chrome/browser/chromeos/login/login_utils.cc |
+++ b/chrome/browser/chromeos/login/login_utils.cc |
@@ -282,6 +282,11 @@ void LoginUtilsImpl::DoBrowserLaunch(Profile* profile, |
if (browser_shutdown::IsTryingToQuit()) |
return; |
+ if (!UserManager::Get()->GetCurrentUserFlow()->ShouldLaunchBrowser()) { |
+ UserManager::Get()->GetCurrentUserFlow()->LaunchExtraSteps(profile); |
+ return; |
+ } |
+ |
CommandLine user_flags(CommandLine::NO_PROGRAM); |
about_flags::PrefServiceFlagsStorage flags_storage_(profile->GetPrefs()); |
about_flags::ConvertFlagsToSwitches(&flags_storage_, &user_flags); |
@@ -297,11 +302,6 @@ void LoginUtilsImpl::DoBrowserLaunch(Profile* profile, |
return; |
} |
- if (!UserManager::Get()->GetCurrentUserFlow()->ShouldLaunchBrowser()) { |
- UserManager::Get()->GetCurrentUserFlow()->LaunchExtraSteps(profile); |
- return; |
- } |
- |
if (login_host) { |
login_host->SetStatusAreaVisible(true); |
login_host->BeforeSessionStart(); |