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

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

Issue 2828633002: Compile file_selection and some other Files app files in gyp v2 (Closed)
Patch Set: Add TODO to depend on externs/ instead of background/. Created 3 years, 8 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/dialog_action_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js b/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js
index 1ae70f567f174b3325c861709924a807c002cc56..4fe223b9ae4ecc14c6e36afbb46b7e0ea7c88122 100644
--- a/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js
@@ -125,7 +125,8 @@ function DialogActionController(
this.fileTypes_, launchParam.includeAllFiles);
this.onFileTypeFilterChanged_();
- this.newFolderCommand_ = document.getElementById('new-folder');
+ this.newFolderCommand_ =
+ /** @type {cr.ui.Command} */ (document.getElementById('new-folder'));
this.newFolderCommand_.addEventListener(
'disabledChange', this.updateNewFolderButton_.bind(this));
}
@@ -138,7 +139,8 @@ DialogActionController.prototype.processOKActionForSaveDialog_ = function() {
// If OK action is clicked when a directory is selected, open the directory.
if (selection.directoryCount === 1 && selection.fileCount === 0) {
- this.directoryModel_.changeDirectoryEntry(selection.entries[0]);
+ this.directoryModel_.changeDirectoryEntry(
+ /** @type {!DirectoryEntry} */ (selection.entries[0]));
return;
}

Powered by Google App Engine
This is Rietveld 408576698