Index: chrome/browser/extensions/extension_commands_global_registry.cc |
diff --git a/chrome/browser/extensions/extension_commands_global_registry.cc b/chrome/browser/extensions/extension_commands_global_registry.cc |
index fafa223c4613ca03265d2a31e49c0e77310de764..c98051c45e07ed38b3c0e47203582271a63bc6e5 100644 |
--- a/chrome/browser/extensions/extension_commands_global_registry.cc |
+++ b/chrome/browser/extensions/extension_commands_global_registry.cc |
@@ -52,13 +52,6 @@ ExtensionCommandsGlobalRegistry* ExtensionCommandsGlobalRegistry::Get( |
context); |
} |
-// static |
-void ExtensionCommandsGlobalRegistry::SetShortcutHandlingSuspended( |
- bool suspended) { |
- GlobalShortcutListener::GetInstance()->SetShortcutHandlingSuspended( |
- suspended); |
-} |
- |
bool ExtensionCommandsGlobalRegistry::IsRegistered( |
const ui::Accelerator& accelerator) { |
return (registry_for_active_window() && |
@@ -113,6 +106,14 @@ void ExtensionCommandsGlobalRegistry::RemoveExtensionKeybindingImpl( |
accelerator, this); |
} |
+void ExtensionCommandsGlobalRegistry::OnShortcutHandlingSuspended( |
+ bool suspended) { |
+ GlobalShortcutListener::GetInstance()->SetShortcutHandlingSuspended( |
+ suspended); |
+ if (registry_for_active_window()) |
+ registry_for_active_window()->SetShortcutHandlingSuspended(suspended); |
+} |
+ |
void ExtensionCommandsGlobalRegistry::OnKeyPressed( |
const ui::Accelerator& accelerator) { |
ExtensionKeybindingRegistry::NotifyEventTargets(accelerator); |