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

Unified Diff: chrome/browser/services/gcm/gcm_profile_service_factory.h

Issue 955673004: Move gcm-independent parts of push messaging out of gcm namespace and directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: buildfix push_messaging_application_id_unittest Created 5 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
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>;

Powered by Google App Engine
This is Rietveld 408576698