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

Unified Diff: chrome/browser/chromeos/extensions/networking_private_event_router_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/chromeos/extensions/networking_private_event_router_factory.h
diff --git a/chrome/browser/chromeos/extensions/networking_private_event_router_factory.h b/chrome/browser/chromeos/extensions/networking_private_event_router_factory.h
index 93eba041a80fb43b68091272a9d6088980cce9fe..020890480d076053aee85b82bbb1d0ddbc4e8fe8 100644
--- a/chrome/browser/chromeos/extensions/networking_private_event_router_factory.h
+++ b/chrome/browser/chromeos/extensions/networking_private_event_router_factory.h
@@ -14,10 +14,11 @@ namespace chromeos {
class NetworkingPrivateEventRouter;
-// This is a factory class used by the ProfileDependencyManager to instantiate
-// the networking event router per profile (since the extension event router is
-// per profile).
-class NetworkingPrivateEventRouterFactory : public ProfileKeyedServiceFactory {
+// This is a factory class used by the BrowserContextDependencyManager
+// to instantiate the networking event router per profile (since the extension
+// event router is per profile).
+class NetworkingPrivateEventRouterFactory
+ : public BrowserContextKeyedServiceFactory {
public:
// Returns the NetworkingPrivateEventRouter for |profile|, creating it if
// it is not yet created.
@@ -27,10 +28,10 @@ class NetworkingPrivateEventRouterFactory : public ProfileKeyedServiceFactory {
static NetworkingPrivateEventRouterFactory* GetInstance();
protected:
- // ProfileKeyedBaseFactory overrides:
+ // BrowserContextKeyedBaseFactory overrides:
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
- virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
+ virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
private:
@@ -39,8 +40,8 @@ class NetworkingPrivateEventRouterFactory : public ProfileKeyedServiceFactory {
NetworkingPrivateEventRouterFactory();
virtual ~NetworkingPrivateEventRouterFactory();
- // ProfileKeyedServiceFactory:
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ // BrowserContextKeyedServiceFactory:
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateEventRouterFactory);

Powered by Google App Engine
This is Rietveld 408576698