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

Unified Diff: chrome/browser/invalidation/invalidation_service_factory.h

Issue 218903005: Make push messaging not create InvalidationService for login and guest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make code resilient against tests that do not create the Default profile first. 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/invalidation/invalidation_service_factory.h
diff --git a/chrome/browser/invalidation/invalidation_service_factory.h b/chrome/browser/invalidation/invalidation_service_factory.h
index b75a378a02bea8adf16091991ce0f82b0475f777..d7886e78b0b26c467fd93eb6466e0fd1cc2ba10a 100644
--- a/chrome/browser/invalidation/invalidation_service_factory.h
+++ b/chrome/browser/invalidation/invalidation_service_factory.h
@@ -32,6 +32,9 @@ class P2PInvalidationService;
// on invalidations.
class InvalidationServiceFactory : public BrowserContextKeyedServiceFactory {
public:
+ // Returns the InvalidationService for the given |profile|, lazily creating
+ // one first if required. If |profile| does not support invalidation
+ // (Chrome OS login profile, Chrome OS guest), returns NULL instead.
static InvalidationService* GetForProfile(Profile* profile);
static InvalidationServiceFactory* GetInstance();

Powered by Google App Engine
This is Rietveld 408576698