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

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

Issue 17451011: Make the externally connectable browser test clobber all of the builtins, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
diff --git a/chrome/renderer/resources/extensions/omnibox_custom_bindings.js b/chrome/renderer/resources/extensions/omnibox_custom_bindings.js
index 2fd7a6c58c7bcae96650ecf2fe971abfaf8a509e..6e753a97b104df0088f58c07329b8dbf4c71bd0a 100644
--- a/chrome/renderer/resources/extensions/omnibox_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/omnibox_custom_bindings.js
@@ -65,7 +65,7 @@ function parseOmniboxDescription(input) {
'type': child.nodeName,
'offset': result.description.length
};
- result.descriptionStyles.push(style);
+ $Array.push(result.descriptionStyles, style);
walk(child);
style.length = result.description.length - style.offset;
continue;
@@ -105,7 +105,7 @@ binding.registerCustomHook(function(bindingsAPI) {
var parseResult = parseOmniboxDescription(
userSuggestions[i].description);
parseResult.content = userSuggestions[i].content;
- suggestions.push(parseResult);
+ $Array.push(suggestions, parseResult);
}
return [requestId, suggestions];
});

Powered by Google App Engine
This is Rietveld 408576698