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