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

Unified Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 22909019: Start the session, then restore browser Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f3c8e3e6957706851155cf01e63cbc32de8d1a74..b0207f4b9ae9eb222dd76ee67668cc3f40440d88 100644
--- a/chrome/browser/chromeos/login/login_utils.cc
+++ b/chrome/browser/chromeos/login/login_utils.cc
@@ -277,19 +277,19 @@ void LoginUtilsImpl::DoBrowserLaunch(Profile* profile,
chrome::startup::IsFirstRun first_run = first_run::IsChromeFirstRun() ?
chrome::startup::IS_FIRST_RUN : chrome::startup::IS_NOT_FIRST_RUN;
- browser_creator.LaunchBrowser(*CommandLine::ForCurrentProcess(),
- profile,
- base::FilePath(),
- chrome::startup::IS_PROCESS_STARTUP,
- first_run,
- &return_code);
-
// Mark login host for deletion after browser starts. This
// guarantees that the message loop will be referenced by the
// browser before it is dereferenced by the login host.
if (login_host)
login_host->Finalize();
UserManager::Get()->SessionStarted();
+
+ browser_creator.LaunchBrowser(*CommandLine::ForCurrentProcess(),
+ profile,
+ base::FilePath(),
+ chrome::startup::IS_PROCESS_STARTUP,
+ first_run,
+ &return_code);
}
void LoginUtilsImpl::PrepareProfile(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698