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

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

Issue 2695613002: 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 49f61532f21a64229b7a6a4b665d54eb07be0698..45251ceed92a272710b3b2cfc5889ad05c297950 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -815,6 +815,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
@@ -825,7 +828,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