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

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

Issue 12256046: Added interstitial page for merge session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
index e1874f9f3b92007fa1b3c5a935892fb603d0af86..482174c5921dc52e247d5e1571c7438424add8e8 100644
--- a/chrome/browser/chromeos/login/login_utils.cc
+++ b/chrome/browser/chromeos/login/login_utils.cc
@@ -229,6 +229,7 @@ class LoginUtilsImpl
virtual void InitRlzDelayed(Profile* user_profile) OVERRIDE;
// OAuthLoginManager::Delegate overrides.
+ virtual void OnCompletedMergeSession() OVERRIDE;
virtual void OnCompletedAuthentication(Profile* user_profile) OVERRIDE;
virtual void OnFoundStoredTokens() OVERRIDE;
@@ -561,6 +562,8 @@ void LoginUtilsImpl::RestoreAuthSession(Profile* user_profile,
if (!login_manager_.get())
return;
+ 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.
@@ -997,6 +1000,10 @@ void LoginUtilsImpl::OnCompletedAuthentication(Profile* user_profile) {
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