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

Unified Diff: chrome/browser/extensions/extension_keybinding_registry.cc

Issue 838253004: MacViews: Fix duplicate definition of ExtensionKeyBindingRegistry::SetShortcutHandlingSuspended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DragBookmarks2
Patch Set: Use callback Created 5 years, 11 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_keybinding_registry.cc
diff --git a/chrome/browser/extensions/extension_keybinding_registry.cc b/chrome/browser/extensions/extension_keybinding_registry.cc
index 22837a82a1b36a0831e0030efa77d2e29a56bb8c..0d815a27966e92d5e3dd1fb68a39bb6a58a59218 100644
--- a/chrome/browser/extensions/extension_keybinding_registry.cc
+++ b/chrome/browser/extensions/extension_keybinding_registry.cc
@@ -21,6 +21,8 @@ const char kOnCommandEventName[] = "commands.onCommand";
namespace extensions {
+bool ExtensionKeybindingRegistry::shortcut_handling_suspended_ = false;
+
ExtensionKeybindingRegistry::ExtensionKeybindingRegistry(
content::BrowserContext* context,
ExtensionFilter extension_filter,
@@ -43,6 +45,16 @@ ExtensionKeybindingRegistry::ExtensionKeybindingRegistry(
ExtensionKeybindingRegistry::~ExtensionKeybindingRegistry() {
}
+// static
+void ExtensionKeybindingRegistry::SetShortcutHandlingSuspended(bool suspended) {
+ shortcut_handling_suspended_ = suspended;
+}
+
+// static
+bool ExtensionKeybindingRegistry::IsShortcutHandlingSuspended() {
+ return shortcut_handling_suspended_;
+}
+
void ExtensionKeybindingRegistry::RemoveExtensionKeybinding(
const Extension* extension,
const std::string& command_name) {

Powered by Google App Engine
This is Rietveld 408576698