Index: chrome/renderer/resources/extensions/omnibox_custom_bindings.js |
=================================================================== |
--- chrome/renderer/resources/extensions/omnibox_custom_bindings.js (revision 146077) |
+++ chrome/renderer/resources/extensions/omnibox_custom_bindings.js (working copy) |
@@ -97,14 +97,12 @@ |
} |
return [requestId, suggestions]; |
}); |
-}); |
-chromeHidden.Event.registerArgumentMassager('omnibox.onInputChanged', |
- function(args, dispatch) { |
- var text = args[0]; |
- var requestId = args[1]; |
- var suggestCallback = function(suggestions) { |
- chrome.omnibox.sendSuggestions(requestId, suggestions); |
+ chrome.omnibox.onInputChanged.dispatch = |
+ function(text, requestId) { |
+ var suggestCallback = function(suggestions) { |
+ chrome.omnibox.sendSuggestions(requestId, suggestions); |
+ }; |
+ chrome.Event.prototype.dispatch.apply(this, [text, suggestCallback]); |
}; |
- dispatch([text, suggestCallback]); |
}); |