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

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

Issue 14354006: Reset the OAuth2LoginManager fetchers when restoring a new session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/oauth2_login_manager.cc
diff --git a/chrome/browser/chromeos/login/oauth2_login_manager.cc b/chrome/browser/chromeos/login/oauth2_login_manager.cc
index cd908855c6b449c83a9a2676abc56e712e0ffba7..7afb65f5d93cbc005e65236df71e5188b67b911b 100644
--- a/chrome/browser/chromeos/login/oauth2_login_manager.cc
+++ b/chrome/browser/chromeos/login/oauth2_login_manager.cc
@@ -67,6 +67,11 @@ void OAuth2LoginManager::RestoreSession(
refresh_token_ = oauth2_refresh_token;
auth_code_ = auth_code;
+ // TODO(nkostylev): drop the previous fetchers if RestoreSession() is invoked
+ // for a second Profile, when using multi-profiles. This avoids the DCHECKs
+ // below until OAuthLoginManager fully supports multi-profiles.
+ Stop();
+
// TODO(zelidrag): Remove eventually the next line in some future milestone.
RemoveLegacyTokens();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698