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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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 0b86143108176d1e8bae568e8a88d50b38579b72..da6900a217b363011c42b20408cb868982aeaff1 100644
--- a/chrome/browser/invalidation/invalidation_service_factory.h
+++ b/chrome/browser/invalidation/invalidation_service_factory.h
@@ -18,21 +18,23 @@ class Profile;
namespace invalidation {
-// A ProfileKeyedServiceFactory to construct InvalidationServices. The
+// A BrowserContextKeyedServiceFactory to construct InvalidationServices. The
// implementation of the InvalidationService may be completely different on
// different platforms; this class should help to hide this complexity. It also
// exposes some factory methods that are useful for setting up tests that rely
// on invalidations.
-class InvalidationServiceFactory : public ProfileKeyedServiceFactory {
+class InvalidationServiceFactory : public BrowserContextKeyedServiceFactory {
public:
// TODO(rlarocque): Re-enable this once InvalidationFrontend can extend
- // ProfileKeyedService.
+ // BrowserContextKeyedService.
// static InvalidationFrontend* GetForProfile(Profile* profile);
static InvalidationServiceFactory* GetInstance();
- static ProfileKeyedService* BuildP2PInvalidationServiceFor(Profile* profile);
- static ProfileKeyedService* BuildTestServiceInstanceFor(Profile* profile);
+ static BrowserContextKeyedService* BuildP2PInvalidationServiceFor(
+ Profile* profile);
+ static BrowserContextKeyedService* BuildTestServiceInstanceFor(
+ Profile* profile);
private:
friend struct DefaultSingletonTraits<InvalidationServiceFactory>;
@@ -40,8 +42,8 @@ class InvalidationServiceFactory : public ProfileKeyedServiceFactory {
InvalidationServiceFactory();
virtual ~InvalidationServiceFactory();
- // ProfileKeyedServiceFactory:
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ // BrowserContextKeyedServiceFactory:
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
// TODO(rlarocque): Use this class, not InvalidatorStorage, to register
// for user prefs.

Powered by Google App Engine
This is Rietveld 408576698