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

Unified Diff: chrome/browser/services/gcm/gcm_profile_service.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/services/gcm/gcm_profile_service.h
diff --git a/chrome/browser/services/gcm/gcm_profile_service.h b/chrome/browser/services/gcm/gcm_profile_service.h
index 75eefe659049985d7dac4b7d80c6f5eb2f6f08e1..f53273436086e62e79235883e6f07c1410d04cea 100644
--- a/chrome/browser/services/gcm/gcm_profile_service.h
+++ b/chrome/browser/services/gcm/gcm_profile_service.h
@@ -16,6 +16,7 @@
#include "base/memory/weak_ptr.h"
#include "chrome/browser/services/gcm/default_gcm_app_handler.h"
#include "chrome/browser/signin/signin_manager_base.h"
+#include "chrome/browser/signin/signin_manager_factory.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -40,7 +41,8 @@ class GCMProfileServiceTestConsumer;
// Acts as a bridge between GCM API and GCMClient layer. It is profile based.
class GCMProfileService : public KeyedService,
public content::NotificationObserver,
- public SigninManagerBase::Observer {
+ public SigninManagerBase::Observer,
+ public SigninManagerFactory::Observer {
public:
typedef base::Callback<void(const std::string& registration_id,
GCMClient::Result result)> RegisterCallback;
@@ -147,6 +149,10 @@ class GCMProfileService : public KeyedService,
const std::string& password) OVERRIDE;
virtual void GoogleSignedOut(const std::string& username) OVERRIDE;
+ // Overridden from SigninManagerFactory::Observer:
+ virtual void SigninManagerCreated(SigninManagerBase* manager) OVERRIDE;
+ virtual void SigninManagerShutdown(SigninManagerBase* manager) OVERRIDE;
+
// Ensures that the GCMClient is loaded and the GCM check-in is done when
// the profile was signed in.
void EnsureLoaded();

Powered by Google App Engine
This is Rietveld 408576698