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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_transfer_controller.js

Issue 2640673002: (WIP) Use generator to generate externs for chrome.fileManagerPrivate API.
Patch Set: Compile passes Created 3 years, 11 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: ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js b/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
index cb390cae0c6df856ffaecad13a68112a514e4d82..83583fc671fe5f18aa42104a97b88b6a07338c69 100644
--- a/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
@@ -621,7 +621,8 @@ FileTransferController.prototype.paste =
return new Promise(function(fulfill) {
chrome.fileManagerPrivate.requestDriveShare(
shareEntries[index],
- assert(dialogResult),
+ /** @type {chrome.fileManagerPrivate.DriveShareType} */ (
+ assert(dialogResult)),
function() {
// TODO(hirono): Check chrome.runtime.lastError here.
fulfill();

Powered by Google App Engine
This is Rietveld 408576698