| 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 1aa179f85ea017a97ef1f8a36fe5aa5bcdc995f2..5fc24d99743a9652163b8537c5f6184304d722bd 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
|
| @@ -94,11 +94,11 @@ function DialogActionController(
|
| this.fileTypes_ = launchParam.typeList || [];
|
|
|
| /**
|
| - * @type {boolean}
|
| + * @type {!AllowedPaths}
|
| * @const
|
| * @private
|
| */
|
| - this.shouldReturnLocalPath_ = launchParam.shouldReturnLocalPath;
|
| + this.allowedPaths_ = launchParam.allowedPaths;
|
|
|
| /**
|
| * Bound function for onCancel_.
|
| @@ -287,14 +287,14 @@ DialogActionController.prototype.selectFilesAndClose_ = function(selection) {
|
| if (selection.multiple) {
|
| chrome.fileManagerPrivate.selectFiles(
|
| selection.urls,
|
| - this.shouldReturnLocalPath_,
|
| + this.allowedPaths_ === AllowedPaths.NATIVE_PATH,
|
| onFileSelected);
|
| } else {
|
| chrome.fileManagerPrivate.selectFile(
|
| selection.urls[0],
|
| selection.filterIndex,
|
| this.dialogType_ !== DialogType.SELECT_SAVEAS_FILE /* for opening */,
|
| - this.shouldReturnLocalPath_,
|
| + this.allowedPaths_ === AllowedPaths.NATIVE_PATH,
|
| onFileSelected);
|
| }
|
| }.bind(this);
|
|
|