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

Unified Diff: chrome/browser/extensions/extension_commands_global_registry.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/extension_commands_global_registry.cc
diff --git a/chrome/browser/extensions/extension_commands_global_registry.cc b/chrome/browser/extensions/extension_commands_global_registry.cc
index 72bb97cef8ada140cf190bc654fd3789935aa8e0..b3b19b0fe8d22fd658ce2e9fc0737dccac76050a 100644
--- a/chrome/browser/extensions/extension_commands_global_registry.cc
+++ b/chrome/browser/extensions/extension_commands_global_registry.cc
@@ -26,11 +26,11 @@ ExtensionCommandsGlobalRegistry::~ExtensionCommandsGlobalRegistry() {
}
static base::LazyInstance<
- ProfileKeyedAPIFactory<ExtensionCommandsGlobalRegistry> >
-g_factory = LAZY_INSTANCE_INITIALIZER;
+ BrowserContextKeyedAPIFactory<ExtensionCommandsGlobalRegistry> > g_factory =
+ LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<ExtensionCommandsGlobalRegistry>*
+BrowserContextKeyedAPIFactory<ExtensionCommandsGlobalRegistry>*
ExtensionCommandsGlobalRegistry::GetFactoryInstance() {
return g_factory.Pointer();
}
@@ -38,7 +38,7 @@ ExtensionCommandsGlobalRegistry::GetFactoryInstance() {
// static
ExtensionCommandsGlobalRegistry* ExtensionCommandsGlobalRegistry::Get(
content::BrowserContext* context) {
- return ProfileKeyedAPIFactory<ExtensionCommandsGlobalRegistry>::GetForProfile(
+ return BrowserContextKeyedAPIFactory<ExtensionCommandsGlobalRegistry>::Get(
context);
}

Powered by Google App Engine
This is Rietveld 408576698