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

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: @r213855 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'))) {
asanka 2013/07/26 15:47:22 Shouldn't it be an error if the conflict action is
benjhayden 2013/07/26 19:56:25 suggest doesn't take a callback to set runtime.las
downloadsInternal.determineFilename(
- downloadId, result.filename, result.conflict_action || "");
+ downloadId, result.filename, result.conflictAction || "");
} else {
downloadsInternal.determineFilename(downloadId, "", "");
}

Powered by Google App Engine
This is Rietveld 408576698