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

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

Issue 14139003: Chrome OS multi-profiles backend and UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move IsMultiProfilesEnabled() out of cros 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 | « chrome/browser/chromeos/login/mock_user_manager.cc ('k') | chrome/browser/chromeos/login/user.h » ('j') | 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 0b2d8363d9a12cbf3a93af11c8fd229f68427c60..cd908855c6b449c83a9a2676abc56e712e0ffba7 100644
--- a/chrome/browser/chromeos/login/oauth2_login_manager.cc
+++ b/chrome/browser/chromeos/login/oauth2_login_manager.cc
@@ -55,6 +55,11 @@ void OAuth2LoginManager::RestoreSession(
SessionRestoreStrategy restore_strategy,
const std::string& oauth2_refresh_token,
const std::string& auth_code) {
+ // TODO(nkostylev): OAuth2LoginManager should support multi-profiles or
+ // should be refactored as ProfileKeyedService. For now we unsubscribe from
+ // TokenService notifications of a user that was previously active.
+ // http://crbug.com/230342
+ registrar_.RemoveAll();
user_profile_ = user_profile;
auth_request_context_ = auth_request_context;
state_ = OAuthLoginManager::SESSION_RESTORE_IN_PROGRESS;
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.cc ('k') | chrome/browser/chromeos/login/user.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698