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

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

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.cc
diff --git a/chrome/browser/extensions/api/declarative/rules_registry_service.cc b/chrome/browser/extensions/api/declarative/rules_registry_service.cc
index 58d76b0934931d440daf014e95eb10a5f5b70a5e..908e1cc2860e4835b9e55b41ef9ac40f98f5df6a 100644
--- a/chrome/browser/extensions/api/declarative/rules_registry_service.cc
+++ b/chrome/browser/extensions/api/declarative/rules_registry_service.cc
@@ -122,11 +122,11 @@ void RulesRegistryService::Shutdown() {
scoped_refptr<WebRequestRulesRegistry>(NULL)));
}
-static base::LazyInstance<ProfileKeyedAPIFactory<RulesRegistryService> >
-g_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<BrowserContextKeyedAPIFactory<RulesRegistryService> >
+ g_factory = LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<RulesRegistryService>*
+BrowserContextKeyedAPIFactory<RulesRegistryService>*
RulesRegistryService::GetFactoryInstance() {
return g_factory.Pointer();
}
@@ -134,7 +134,7 @@ RulesRegistryService::GetFactoryInstance() {
// static
RulesRegistryService* RulesRegistryService::Get(
content::BrowserContext* context) {
- return ProfileKeyedAPIFactory<RulesRegistryService>::GetForProfile(context);
+ return BrowserContextKeyedAPIFactory<RulesRegistryService>::Get(context);
}
void RulesRegistryService::RegisterRulesRegistry(

Powered by Google App Engine
This is Rietveld 408576698