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

Unified Diff: chrome/browser/chromeos/file_manager/volume_manager.cc

Issue 2451713002: Propagate the read_only_hardware flag of volumes to js. (Closed)
Patch Set: Rename the field name to is_read_only_removable_device, as it's only valid for removable devices. Created 4 years, 2 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: chrome/browser/chromeos/file_manager/volume_manager.cc
diff --git a/chrome/browser/chromeos/file_manager/volume_manager.cc b/chrome/browser/chromeos/file_manager/volume_manager.cc
index e2274225166fd9456d81a893f96ae44046620158..facd03ca5e2cfc2ce790ac612eede5fbd8cea9e8 100644
--- a/chrome/browser/chromeos/file_manager/volume_manager.cc
+++ b/chrome/browser/chromeos/file_manager/volume_manager.cc
@@ -151,6 +151,7 @@ Volume::Volume()
mount_context_(MOUNT_CONTEXT_UNKNOWN),
is_parent_(false),
is_read_only_(false),
+ is_read_only_removable_device_(false),
has_media_(false),
configurable_(false),
watchable_(false) {
@@ -207,6 +208,7 @@ Volume* Volume::CreateForRemovable(
volume->system_path_prefix_ = base::FilePath(disk->system_path_prefix());
volume->is_parent_ = disk->is_parent();
volume->is_read_only_ = disk->is_read_only();
+ volume->is_read_only_removable_device_ = disk->is_read_only_hardware();
volume->has_media_ = disk->has_media();
} else {
volume->device_type_ = chromeos::DEVICE_TYPE_UNKNOWN;
« no previous file with comments | « chrome/browser/chromeos/file_manager/volume_manager.h ('k') | chrome/common/extensions/api/file_manager_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698