Chromium Code Reviews| Index: chrome/browser/extensions/extension_browser_event_router.cc |
| =================================================================== |
| --- chrome/browser/extensions/extension_browser_event_router.cc (revision 122745) |
| +++ chrome/browser/extensions/extension_browser_event_router.cc (working copy) |
| @@ -653,3 +653,18 @@ |
| DispatchEventWithTab(profile, extension_id, "browserAction.onClicked", |
| tab_contents->web_contents(), true); |
| } |
| + |
| +void ExtensionBrowserEventRouter::CommandExecuted( |
| + Profile* profile, |
| + const std::string& extension_id, |
| + const std::string& command) { |
| + ListValue args; |
| + args.Append(Value::CreateStringValue(command)); |
| + std::string json_args; |
| + base::JSONWriter::Write(&args, false, &json_args); |
| + |
| + DispatchEventToExtension(profile, |
| + extension_id, |
|
Matt Perry
2012/02/21 23:13:39
nit: indent +2
|
| + "experimental.keybinding.onCommand", |
| + json_args); |
| +} |