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

Unified Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 11667024: Do not return profile unless it is loaded (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Also fix ToDo Created 7 years, 11 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 | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/chrome_browser_main_chromeos.cc
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
index 5b947a9e19b4326db91819aa26438e4bca14b706..9236d3d0dc9663ec63fefcf7edf6e7d21a93a257 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -504,6 +504,12 @@ void ChromeBrowserMainPartsChromeos::PreProfileInit() {
app_order_loader_.reset(
new default_app_order::ExternalLoader(false /* async */));
+ // TODO(antrim): SessionStarted notification should be moved to
+ // PostProfileInit at some point, as NOTIFICATION_SESSION_STARTED should
+ // go after NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, which requires
+ // loaded profile (and, thus, should be fired in PostProfileInit, as
+ // synchronous profile loading does not emit it).
+
user_manager->SessionStarted();
}
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698