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

Unified Diff: extensions/browser/browser_context_keyed_api_factory.h

Issue 197413002: Move extensions-related files to using //components/keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « extensions/browser/api/storage/settings_test_util.cc ('k') | extensions/browser/extension_pref_value_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/browser_context_keyed_api_factory.h
diff --git a/extensions/browser/browser_context_keyed_api_factory.h b/extensions/browser/browser_context_keyed_api_factory.h
index cfe26bf5526a1ce4054b15ad5f8c52fed0b554f4..15728dc55d294ab1a52b774f609bbd267b214ecf 100644
--- a/extensions/browser/browser_context_keyed_api_factory.h
+++ b/extensions/browser/browser_context_keyed_api_factory.h
@@ -5,9 +5,9 @@
#ifndef EXTENSIONS_BROWSER_BROWSER_CONTEXT_KEYED_API_FACTORY_H_
#define EXTENSIONS_BROWSER_BROWSER_CONTEXT_KEYED_API_FACTORY_H_
-#include "components/browser_context_keyed_service/browser_context_dependency_manager.h"
-#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
-#include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
+#include "components/keyed_service/content/browser_context_dependency_manager.h"
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
+#include "components/keyed_service/core/keyed_service.h"
#include "extensions/browser/extension_system_provider.h"
#include "extensions/browser/extensions_browser_client.h"
@@ -20,7 +20,7 @@ class BrowserContextKeyedAPIFactory;
// and also define a static const char* service_name() function (used in the
// BrowserContextKeyedBaseFactory constructor). These fields should
// be accessible to the BrowserContextKeyedAPIFactory for the service.
-class BrowserContextKeyedAPI : public BrowserContextKeyedService {
+class BrowserContextKeyedAPI : public KeyedService {
protected:
// Defaults for flags that control BrowserContextKeyedAPIFactory behavior.
// These can be overridden by subclasses to change that behavior.
@@ -65,10 +65,9 @@ class BrowserContextKeyedAPI : public BrowserContextKeyedService {
// }
};
-// A template for factories for BrowserContextKeyedServices that manage
-// extension APIs. T is a BrowserContextKeyedService that uses this factory
-// template instead of its own separate factory definition to manage its
-// per-profile instances.
+// A template for factories for KeyedServices that manage extension APIs. T is
+// a KeyedService that uses this factory template instead of its own separate
+// factory definition to manage its per-profile instances.
template <typename T>
class BrowserContextKeyedAPIFactory : public BrowserContextKeyedServiceFactory {
public:
@@ -103,7 +102,7 @@ class BrowserContextKeyedAPIFactory : public BrowserContextKeyedServiceFactory {
private:
// BrowserContextKeyedServiceFactory implementation.
- virtual BrowserContextKeyedService* BuildServiceInstanceFor(
+ virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const OVERRIDE {
return new T(context);
}
« no previous file with comments | « extensions/browser/api/storage/settings_test_util.cc ('k') | extensions/browser/extension_pref_value_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698