Index: chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.cc |
=================================================================== |
--- chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.cc (revision 137495) |
+++ chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.cc (working copy) |
@@ -47,7 +47,8 @@ |
ExtensionCommandService* command_service = |
ExtensionCommandServiceFactory::GetForProfile(profile_); |
const extensions::CommandMap& commands = |
- command_service->GetActiveNamedCommands(extension->id()); |
+ command_service->GetNamedCommands(extension->id(), |
+ ExtensionCommandService::ACTIVE_ONLY); |
extensions::CommandMap::const_iterator iter = commands.begin(); |
for (; iter != commands.end(); ++iter) { |
ui::AcceleratorGtk accelerator(iter->second.accelerator().key_code(), |
@@ -74,7 +75,8 @@ |
// action to the event_targets_, even though we don't register them as |
// handlers. See http://crbug.com/124873. |
const extensions::Command* browser_action = |
- command_service->GetActiveBrowserActionCommand(extension->id()); |
+ command_service->GetBrowserActionCommand( |
+ extension->id(), ExtensionCommandService::ACTIVE_ONLY); |
if (browser_action) { |
ui::AcceleratorGtk accelerator(browser_action->accelerator().key_code(), |
browser_action->accelerator().IsShiftDown(), |
@@ -85,7 +87,8 @@ |
} |
const extensions::Command* page_action = |
- command_service->GetActivePageActionCommand(extension->id()); |
+ command_service->GetPageActionCommand( |
+ extension->id(), ExtensionCommandService::ACTIVE_ONLY); |
if (page_action) { |
ui::AcceleratorGtk accelerator(page_action->accelerator().key_code(), |
page_action->accelerator().IsShiftDown(), |