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

Unified Diff: chrome/browser/extensions/extension_commands_global_registry.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/extension_commands_global_registry.h
diff --git a/chrome/browser/extensions/extension_commands_global_registry.h b/chrome/browser/extensions/extension_commands_global_registry.h
index c84e2f2a1c35495c425b994629079c218cfcfe17..29d71712b076957b5893c5515a9805729f05aa4b 100644
--- a/chrome/browser/extensions/extension_commands_global_registry.h
+++ b/chrome/browser/extensions/extension_commands_global_registry.h
@@ -9,9 +9,9 @@
#include <string>
#include "base/compiler_specific.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/extension_keybinding_registry.h"
#include "chrome/browser/extensions/global_shortcut_listener.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "ui/base/accelerators/accelerator.h"
namespace content {
@@ -29,13 +29,13 @@ class Extension;
// accelerators on behalf of the extensions and routes the commands to them via
// the BrowserEventRouter.
class ExtensionCommandsGlobalRegistry
- : public ProfileKeyedAPI,
+ : public BrowserContextKeyedAPI,
public ExtensionKeybindingRegistry,
public GlobalShortcutListener::Observer {
public:
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<
- ExtensionCommandsGlobalRegistry>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<ExtensionCommandsGlobalRegistry>*
+ GetFactoryInstance();
// Convenience method to get the ExtensionCommandsGlobalRegistry for a
// profile.
@@ -45,9 +45,9 @@ class ExtensionCommandsGlobalRegistry
virtual ~ExtensionCommandsGlobalRegistry();
private:
- friend class ProfileKeyedAPIFactory<ExtensionCommandsGlobalRegistry>;
+ friend class BrowserContextKeyedAPIFactory<ExtensionCommandsGlobalRegistry>;
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() {
return "ExtensionCommandsGlobalRegistry";
}

Powered by Google App Engine
This is Rietveld 408576698