Index: chrome/renderer/resources/extensions/omnibox_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/omnibox_custom_bindings.js b/chrome/renderer/resources/extensions/omnibox_custom_bindings.js |
index de68a764d2f0700bb7056e42b8a600906e534cb7..745010ada856efa39821127fd28476064819ab24 100644 |
--- a/chrome/renderer/resources/extensions/omnibox_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/omnibox_custom_bindings.js |
@@ -97,12 +97,14 @@ chromeHidden.registerCustomHook('omnibox', function(bindingsAPI) { |
} |
return [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]); |
+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); |
}; |
+ dispatch([text, suggestCallback]); |
}); |