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

Unified Diff: chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.h

Issue 838253004: MacViews: Fix duplicate definition of ExtensionKeyBindingRegistry::SetShortcutHandlingSuspended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DragBookmarks2
Patch Set: Fix Mac 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/ui/cocoa/extensions/extension_keybinding_registry_cocoa.h
diff --git a/chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.h b/chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.h
index 3690976df522aa8f386564b3a15519b8db362327..e30bf2e00f1c5463ebe0c4b62bae9e8115e73bf0 100644
--- a/chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.h
+++ b/chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.h
@@ -39,13 +39,6 @@ class ExtensionKeybindingRegistryCocoa
Delegate* delegate);
~ExtensionKeybindingRegistryCocoa() override;
- static void set_shortcut_handling_suspended(bool suspended) {
- shortcut_handling_suspended_ = suspended;
- }
- static bool shortcut_handling_suspended() {
- return shortcut_handling_suspended_;
- }
-
// For a given keyboard |event|, see if a known Extension Command registration
// exists and route the event to it. Returns true if the event was handled,
// false otherwise.
@@ -60,13 +53,6 @@ class ExtensionKeybindingRegistryCocoa
const std::string& command_name) override;
private:
- // Keeps track of whether shortcut handling is currently suspended. Shortcuts
- // are suspended briefly while capturing which shortcut to assign to an
- // extension command in the Config UI. If handling isn't suspended while
- // capturing then trying to assign Ctrl+F to a command would instead result
- // in the Find box opening.
- static bool shortcut_handling_suspended_;
-
// Weak pointer to the our profile. Not owned by us.
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698