Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9753)

Unified Diff: chrome/renderer/resources/extensions/omnibox_custom_bindings.js

Issue 10736024: Revert 146038 as it might have broken chromeos browser_tests - Make eventArgumentMassagers asynchro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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]);
});

Powered by Google App Engine
This is Rietveld 408576698