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

Unified Diff: chrome/browser/extensions/api/identity/account_tracker.h

Issue 196783002: Export a private webstore API to call into the new inline sign-in flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add API tests Created 6 years, 9 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
Index: chrome/browser/extensions/api/identity/account_tracker.h
diff --git a/chrome/browser/extensions/api/identity/account_tracker.h b/chrome/browser/extensions/api/identity/account_tracker.h
index 8c14daf859803c21e35b657af11ed1adb2aa8405..331fb7d33b719e7353c9e2b41ad428277f86fb7e 100644
--- a/chrome/browser/extensions/api/identity/account_tracker.h
+++ b/chrome/browser/extensions/api/identity/account_tracker.h
@@ -10,6 +10,7 @@
#include "base/observer_list.h"
#include "chrome/browser/signin/signin_manager_base.h"
+#include "chrome/browser/signin/signin_manager_factory.h"
#include "components/signin/core/browser/signin_error_controller.h"
#include "google_apis/gaia/gaia_oauth_client.h"
#include "google_apis/gaia/oauth2_token_service.h"
@@ -38,7 +39,8 @@ class AccountIdFetcher;
// 4. If there is no primary account, there are no other accounts.
class AccountTracker : public OAuth2TokenService::Observer,
public SigninErrorController::AuthStatusProvider,
- public SigninManagerBase::Observer {
+ public SigninManagerBase::Observer,
+ public SigninManagerFactory::Observer {
public:
explicit AccountTracker(Profile* profile);
virtual ~AccountTracker();
@@ -76,6 +78,10 @@ class AccountTracker : public OAuth2TokenService::Observer,
const std::string& password) OVERRIDE;
virtual void GoogleSignedOut(const std::string& username) OVERRIDE;
+ // SigninManagerFactory::Observer:
+ virtual void SigninManagerCreated(SigninManagerBase* manager) OVERRIDE;
+ virtual void SigninManagerShutdown(SigninManagerBase* manager) OVERRIDE;
+
private:
struct AccountState {
AccountIds ids;

Powered by Google App Engine
This is Rietveld 408576698