Index: chrome/browser/services/gcm/gcm_profile_service_factory.h |
diff --git a/chrome/browser/services/gcm/gcm_profile_service_factory.h b/chrome/browser/services/gcm/gcm_profile_service_factory.h |
index af4f23c0c5237e9090b9ca8dfdfad46a46eb5c48..4e2661e0674ffd21f4c25352e48f6df60262a906 100644 |
--- a/chrome/browser/services/gcm/gcm_profile_service_factory.h |
+++ b/chrome/browser/services/gcm/gcm_profile_service_factory.h |
@@ -21,6 +21,10 @@ class GCMProfileServiceFactory : public BrowserContextKeyedServiceFactory { |
static GCMProfileService* GetForProfile(content::BrowserContext* profile); |
static GCMProfileServiceFactory* GetInstance(); |
+ // Overrides the factory globally for every profile. |
+ static void SetGlobalTestingFactory( |
+ BrowserContextKeyedServiceFactory::TestingFactoryFunction factory); |
+ |
private: |
friend struct DefaultSingletonTraits<GCMProfileServiceFactory>; |