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

Unified Diff: ui/file_manager/file_manager/background/js/volume_manager.js

Issue 1024553005: Fix mounting read-only volumes in Files app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/background/js/volume_manager.js
diff --git a/ui/file_manager/file_manager/background/js/volume_manager.js b/ui/file_manager/file_manager/background/js/volume_manager.js
index 6ffdf28069e30a540175635ab813cf47b8eb7601..aaf1b6f01c89bc3ea8af40ab36c12091656b01f4 100644
--- a/ui/file_manager/file_manager/background/js/volume_manager.js
+++ b/ui/file_manager/file_manager/background/js/volume_manager.js
@@ -250,7 +250,7 @@ volumeManagerUtil.createVolumeInfo = function(volumeMetadata) {
chrome.fileSystem.requestFileSystem(
{
volumeId: volumeMetadata.volumeId,
- writable: true
+ writable: !volumeMetadata.isReadOnly
},
function(isolatedFileSystem) {
if (chrome.runtime.lastError)
« 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