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

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

Issue 13633003: Part of multiprofile implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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
Index: chrome/browser/chromeos/login/login_performer.cc
diff --git a/chrome/browser/chromeos/login/login_performer.cc b/chrome/browser/chromeos/login/login_performer.cc
index d22c84a48571f66e01391bc2ae7e95755ab05e23..cdbdbba58cf22312538e00c611fffefb3e0a6680 100644
--- a/chrome/browser/chromeos/login/login_performer.cc
+++ b/chrome/browser/chromeos/login/login_performer.cc
@@ -481,7 +481,7 @@ void LoginPerformer::ResolveScreenUnlocked() {
void LoginPerformer::StartLoginCompletion() {
DVLOG(1) << "Login completion started";
BootTimesLoader::Get()->AddLoginTimeMarker("AuthStarted", false);
- Profile* profile = g_browser_process->profile_manager()->GetDefaultProfile();
+ Profile* profile = ProfileManager::GetSigninProfile();
authenticator_ = LoginUtils::Get()->CreateAuthenticator(this);
BrowserThread::PostTask(
@@ -497,14 +497,7 @@ void LoginPerformer::StartLoginCompletion() {
void LoginPerformer::StartAuthentication() {
DVLOG(1) << "Auth started";
BootTimesLoader::Get()->AddLoginTimeMarker("AuthStarted", false);
- Profile* profile;
- {
- // This should be the first place where GetDefaultProfile() is called with
- // logged_in_ = true. This will trigger a call to Profile::CreateProfile()
- // which requires IO access.
- base::ThreadRestrictions::ScopedAllowIO allow_io;
- profile = g_browser_process->profile_manager()->GetDefaultProfile();
- }
+ Profile* profile = ProfileManager::GetSigninProfile();
if (delegate_) {
authenticator_ = LoginUtils::Get()->CreateAuthenticator(this);
BrowserThread::PostTask(

Powered by Google App Engine
This is Rietveld 408576698