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

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

Issue 2699583002: Hide read-only volumes in "Save As" dialogs. (Closed)
Patch Set: Created 3 years, 10 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_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 f779b039a62ecd9bd3ec93e476c0bafe9ed6db04..281f37b1b31f1766795ff0040c842c8f52ad8584 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -806,6 +806,9 @@ FileManager.prototype = /** @struct */ {
}
}
+ var writableOnly =
+ this.launchParams_.type === DialogType.SELECT_SAVEAS_FILE;
+
// VolumeManagerWrapper hides virtual file system related event and data
// even depends on the value of |supportVirtualPath|. If it is
// VirtualPathSupport.NO_VIRTUAL_PATH, it hides Drive even if Drive is
@@ -816,7 +819,7 @@ FileManager.prototype = /** @struct */ {
// Note that the Drive enabling preference change is listened by
// DriveIntegrationService, so here we don't need to take care about it.
this.volumeManager_ = new VolumeManagerWrapper(
- allowedPaths, this.backgroundPage_);
+ allowedPaths, writableOnly, this.backgroundPage_);
};
/**
« no previous file with comments | « ui/file_manager/audio_player/js/audio_player.js ('k') | ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698