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

Unified Diff: chrome/browser/chromeos/login/session/user_session_manager.cc

Issue 2519823006: Chromad: Add authentication flow (Closed)
Patch Set: Fix profile creation, mojo types + rebase. Created 4 years 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/session/user_session_manager.cc
diff --git a/chrome/browser/chromeos/login/session/user_session_manager.cc b/chrome/browser/chromeos/login/session/user_session_manager.cc
index 90a64d7c4b1cedcc86119b17981899010c0be8c7..364d84f5f2f3215a239e6ebd6c84f02e60ff7513 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
@@ -1088,6 +1088,14 @@ void UserSessionManager::UserProfileInitialized(Profile* profile,
return;
}
+ if (user_context_.GetAuthFlow() == UserContext::AUTH_FLOW_AD) {
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE,
+ base::Bind(&UserSessionManager::CompleteProfileCreateAfterAuthTransfer,
+ AsWeakPtr(), profile));
+ return;
+ }
+
FinalizePrepareProfile(profile);
}

Powered by Google App Engine
This is Rietveld 408576698