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

Unified Diff: chrome/browser/extensions/extension_commands_global_registry.h

Issue 575093003: Revert of Track the active ExtensionKeybindingRegistry and make it available to EventRewriter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years, 3 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 c27f75c7007a967a93fe228a67b4867895e81755..92a7a8e42b4073ab50a7802fea22dc99b01f798e 100644
--- a/chrome/browser/extensions/extension_commands_global_registry.h
+++ b/chrome/browser/extensions/extension_commands_global_registry.h
@@ -47,20 +47,6 @@
explicit ExtensionCommandsGlobalRegistry(content::BrowserContext* context);
virtual ~ExtensionCommandsGlobalRegistry();
- // Returns which non-global command registry is active (belonging to the
- // currently active window).
- ExtensionKeybindingRegistry* registry_for_active_window() {
- return registry_for_active_window_;
- }
-
- void set_registry_for_active_window(ExtensionKeybindingRegistry* registry) {
- registry_for_active_window_ = registry;
- }
-
- // Returns whether |accelerator| is registered on the registry for the active
- // window or on the global registry.
- bool IsRegistered(const ui::Accelerator& accelerator);
-
private:
friend class BrowserContextKeyedAPIFactory<ExtensionCommandsGlobalRegistry>;
@@ -84,13 +70,6 @@
// Weak pointer to our browser context. Not owned by us.
content::BrowserContext* browser_context_;
- // The global commands registry not only keeps track of global commands
- // registered, but also of which non-global command registry is active
- // (belonging to the currently active window). Only valid for TOOLKIT_VIEWS
- // and
- // NULL otherwise.
- ExtensionKeybindingRegistry* registry_for_active_window_;
-
DISALLOW_COPY_AND_ASSIGN(ExtensionCommandsGlobalRegistry);
};
« no previous file with comments | « chrome/browser/chromeos/events/event_rewriter.cc ('k') | chrome/browser/extensions/extension_commands_global_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698