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

Unified Diff: chrome/renderer/resources/extensions/sync_file_system_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/sync_file_system_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/sync_file_system_custom_bindings.js b/chrome/renderer/resources/extensions/sync_file_system_custom_bindings.js
index 6ada6a725beba54d788fbb769ea5bf56359a5800..c2df0b0cfe58c978945cb65e73b86c84378d60d7 100644
--- a/chrome/renderer/resources/extensions/sync_file_system_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/sync_file_system_custom_bindings.js
@@ -29,7 +29,7 @@ binding.registerCustomHook(function(bindingsAPI) {
functionName, function(entries, callback) {
var fileSystemUrlArray = [];
for (var i=0; i < entries.length; i++) {
- fileSystemUrlArray.push(entries[i].toURL());
+ $Array.push(fileSystemUrlArray, entries[i].toURL());
}
return [fileSystemUrlArray, callback];
});
@@ -76,7 +76,7 @@ binding.registerCustomHook(function(bindingsAPI) {
entry.isDirectory);
result.status = response[i].status;
result.error = response[i].error;
- results.push(result);
+ $Array.push(results, result);
}
}
if (request.callback)
« no previous file with comments | « chrome/renderer/resources/extensions/storage_area.js ('k') | chrome/renderer/resources/extensions/test_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698