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

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

Issue 16924017: A few minor changes to the chrome.downloads extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r212092 Created 7 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/downloads_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/downloads_custom_bindings.js b/chrome/renderer/resources/extensions/downloads_custom_bindings.js
index be7d1c42cbd23248b6ee856e1e09d1e92b18c655..fff3b1664ccf34bf88b72c9b36a6ae41bf2687a6 100644
--- a/chrome/renderer/resources/extensions/downloads_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/downloads_custom_bindings.js
@@ -25,10 +25,10 @@ eventBindings.registerArgumentMassager(
if ((typeof(result) == 'object') &&
result.filename &&
(typeof(result.filename) == 'string') &&
- ((result.conflict_action == undefined) ||
- (typeof(result.conflict_action) == 'string'))) {
+ ((result.conflictAction == undefined) ||
+ (typeof(result.conflictAction) == 'string'))) {
downloadsInternal.determineFilename(
- downloadId, result.filename, result.conflict_action || "");
+ downloadId, result.filename, result.conflictAction || "");
} else {
downloadsInternal.determineFilename(downloadId, "", "");
}
« chrome/common/extensions/api/downloads.idl ('K') | « chrome/common/extensions/api/downloads.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698