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

Unified Diff: chrome/browser/signin/signin_account_id_helper.h

Issue 186773005: Move SigninAccountIdHelper away from listening to Signin notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | chrome/browser/signin/signin_account_id_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_account_id_helper.h
diff --git a/chrome/browser/signin/signin_account_id_helper.h b/chrome/browser/signin/signin_account_id_helper.h
index b3e0e7354ac2ba72407f6e8791e91748286d783c..c3472e88afffc3bb6bbe5ca83034e4672a8800c9 100644
--- a/chrome/browser/signin/signin_account_id_helper.h
+++ b/chrome/browser/signin/signin_account_id_helper.h
@@ -5,30 +5,25 @@
#ifndef CHROME_BROWSER_SIGNIN_SIGNIN_ACCOUNT_ID_HELPER_H_
#define CHROME_BROWSER_SIGNIN_SIGNIN_ACCOUNT_ID_HELPER_H_
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
+#include "chrome/browser/signin/signin_manager.h"
#include "google_apis/gaia/gaia_oauth_client.h"
#include "google_apis/gaia/oauth2_token_service.h"
class CookieSettings;
class GaiaAuthFetcher;
-class SigninManagerBase;
// The helper class for managing the obfuscated GAIA ID of the primary
// account. It fetches the ID when user first signs into Chrome or when user
// opens a connected Chrome profile without an obfuscated GAIA ID, and stores
// the ID in the profile preference.
-class SigninAccountIdHelper
- : public content::NotificationObserver,
- public OAuth2TokenService::Observer {
+class SigninAccountIdHelper : public SigninManagerBase::Observer,
+ public OAuth2TokenService::Observer {
public:
explicit SigninAccountIdHelper(SigninManagerBase* signin_manager);
virtual ~SigninAccountIdHelper();
- // content::NotificationObserver
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ // SigninManagerBase::Observer:
+ virtual void GoogleSignedOut(const std::string& username) OVERRIDE;
// OAuth2TokenService::Observer:
virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE;
@@ -48,7 +43,6 @@ class SigninAccountIdHelper
static bool disable_for_test_;
SigninManagerBase* signin_manager_;
- content::NotificationRegistrar registrar_;
DISALLOW_COPY_AND_ASSIGN(SigninAccountIdHelper);
};
« no previous file with comments | « no previous file | chrome/browser/signin/signin_account_id_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698