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

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

Issue 1972003002: Show GoogleDrive volume in saving dialog that requires naitve path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/file_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index 811a998886cbac758d56b30467a1f28a3e13a18c..e470306186a8cec95c531d37b8455b54f50d49b8 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -750,9 +750,13 @@ FileManager.prototype = /** @struct */ {
// files. But it does not work for folders (e.g., dialog for loading
// unpacked extensions).
if (allowedPaths === AllowedPaths.NATIVE_PATH &&
- !DialogType.isFolderDialog(this.launchParams_.type) &&
- this.launchParams_.type != DialogType.SELECT_SAVEAS_FILE) {
- allowedPaths = AllowedPaths.ANY_PATH;
+ !DialogType.isFolderDialog(this.launchParams_.type)) {
+ if (this.launchParams_.type == DialogType.SELECT_SAVEAS_FILE) {
+ // Only drive can create snapshot files for saving.
+ allowedPaths = AllowedPaths.NATIVE_OR_DRIVE_PATH;
+ } else {
+ allowedPaths = AllowedPaths.ANY_PATH;
+ }
}
// VolumeManagerWrapper hides virtual file system related event and data
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698