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