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

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

Issue 12335051: Merge 182894 - 3rd attempt (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 10 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 | « chrome/browser/browser_resources.grd ('k') | chrome/browser/chromeos/login/merge_session_load_page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/login_utils.cc
===================================================================
--- chrome/browser/chromeos/login/login_utils.cc (revision 184220)
+++ chrome/browser/chromeos/login/login_utils.cc (working copy)
@@ -227,6 +227,7 @@
virtual void CompleteProfileCreate(Profile* user_profile) OVERRIDE;
// OAuthLoginManager::Delegate overrides.
+ virtual void OnCompletedMergeSession() OVERRIDE;
virtual void OnCompletedAuthentication(Profile* user_profile) OVERRIDE;
virtual void OnFoundStoredTokens() OVERRIDE;
@@ -519,6 +520,8 @@
void LoginUtilsImpl::RestoreAuthSession(Profile* user_profile,
bool restore_from_auth_cookies) {
DCHECK(authenticator_ || !restore_from_auth_cookies);
+ UserManager::Get()->SetMergeSessionState(
+ UserManager::MERGE_STATUS_IN_PROCESS);
// Remove legacy OAuth1 token if we have one. If it's valid, we should already
// have OAuth2 refresh token in TokenService that could be used to retrieve
// all other tokens and credentials.
@@ -954,6 +957,10 @@
StartSignedInServices(user_profile);
}
+void LoginUtilsImpl::OnCompletedMergeSession() {
+ UserManager::Get()->SetMergeSessionState(UserManager::MERGE_STATUS_DONE);
+}
+
void LoginUtilsImpl::OnFoundStoredTokens() {
// We don't need authenticator instance any more since its cookie jar
// is not going to needed to mint OAuth tokens. Reset it so that
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/chromeos/login/merge_session_load_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698