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