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

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry_service.h

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 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/extensions/api/declarative/rules_registry_service.h
diff --git a/chrome/browser/extensions/api/declarative/rules_registry_service.h b/chrome/browser/extensions/api/declarative/rules_registry_service.h
index 6a27eaf11e47c059145b596a1866780d65e0b2ff..ae233722b86875c67282fecc67744caaffdab53e 100644
--- a/chrome/browser/extensions/api/declarative/rules_registry_service.h
+++ b/chrome/browser/extensions/api/declarative/rules_registry_service.h
@@ -13,10 +13,10 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_vector.h"
#include "chrome/browser/extensions/api/declarative/rules_registry.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
class Profile;
@@ -35,7 +35,7 @@ namespace extensions {
// This class owns all RulesRegistries implementations of an ExtensionService.
// This class lives on the UI thread.
-class RulesRegistryService : public ProfileKeyedAPI,
+class RulesRegistryService : public BrowserContextKeyedAPI,
public content::NotificationObserver {
public:
typedef RulesRegistry::WebViewKey WebViewKey;
@@ -60,8 +60,9 @@ class RulesRegistryService : public ProfileKeyedAPI,
// created by us so that the RulesRegistries can be released.
virtual void Shutdown() OVERRIDE;
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<RulesRegistryService>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<RulesRegistryService>*
+ GetFactoryInstance();
// Convenience method to get the RulesRegistryService for a profile.
static RulesRegistryService* Get(content::BrowserContext* context);
@@ -92,7 +93,7 @@ class RulesRegistryService : public ProfileKeyedAPI,
void SimulateExtensionUninstalled(const std::string& extension_id);
private:
- friend class ProfileKeyedAPIFactory<RulesRegistryService>;
+ friend class BrowserContextKeyedAPIFactory<RulesRegistryService>;
// Maps <event name, webview key> to RuleRegistries that handle these
// events.
@@ -112,7 +113,7 @@ class RulesRegistryService : public ProfileKeyedAPI,
void (RulesRegistry::*notification_callback)(const std::string&),
const std::string& extension_id);
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() {
return "RulesRegistryService";
}

Powered by Google App Engine
This is Rietveld 408576698