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 92a7a8e42b4073ab50a7802fea22dc99b01f798e..23d3ff994fda3b8573f74cc326ec60cb40724cf0 100644 |
--- a/chrome/browser/extensions/extension_commands_global_registry.h |
+++ b/chrome/browser/extensions/extension_commands_global_registry.h |
@@ -33,6 +33,14 @@ class ExtensionCommandsGlobalRegistry |
public ExtensionKeybindingRegistry, |
public GlobalShortcutListener::Observer { |
public: |
+ // Sets the active ExtensionKeybindingRegistry. |
Devlin
2014/09/11 21:38:13
nit: No comments on getters/setters.
David Tseng
2014/09/11 23:57:09
Done.
|
+ void set_active_registry(ExtensionKeybindingRegistry* registry) { |
+ active_registry_ = registry; |
+ } |
+ |
+ // Gets the active ExtensionKeybindingRegistry. |
+ ExtensionKeybindingRegistry* active_registry() { return active_registry_; } |
+ |
// BrowserContextKeyedAPI implementation. |
static BrowserContextKeyedAPIFactory<ExtensionCommandsGlobalRegistry>* |
GetFactoryInstance(); |
@@ -70,6 +78,9 @@ class ExtensionCommandsGlobalRegistry |
// Weak pointer to our browser context. Not owned by us. |
content::BrowserContext* browser_context_; |
+ // The active ExtensionKeybindingRegistry. |
+ ExtensionKeybindingRegistry* active_registry_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ExtensionCommandsGlobalRegistry); |
}; |