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

Unified Diff: chromeos/disks/mock_disk_mount_manager.cc

Issue 2440443003: Preserve the hardware read-only flag in Disk object. (Closed)
Patch Set: Fix build error in file_manager_private_api test. 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: chromeos/disks/mock_disk_mount_manager.cc
diff --git a/chromeos/disks/mock_disk_mount_manager.cc b/chromeos/disks/mock_disk_mount_manager.cc
index 99ba785a7094478a932fe0aed5bbc32d5de78b56..e282b559c4f20ec0f9fd273ff9744ad0c3871a74 100644
--- a/chromeos/disks/mock_disk_mount_manager.cc
+++ b/chromeos/disks/mock_disk_mount_manager.cc
@@ -73,6 +73,7 @@ void MockDiskMountManager::NotifyDeviceInsertEvents() {
std::unique_ptr<DiskMountManager::Disk> disk1_ptr =
base::MakeUnique<DiskMountManager::Disk>(
std::string(kTestDevicePath), std::string(),
+ false, // write_disabled_by_policy
hashimoto 2016/10/21 07:28:04 nit: 2 spaces before a comment. The same goes for
yamaguchi 2016/10/21 08:27:03 Done.
std::string(kTestSystemPath), std::string(kTestFilePath),
std::string(), std::string(kTestDriveLabel),
std::string(kTestVendorId), std::string(kTestVendorName),
@@ -100,6 +101,7 @@ void MockDiskMountManager::NotifyDeviceInsertEvents() {
std::unique_ptr<DiskMountManager::Disk> disk2_ptr =
base::MakeUnique<DiskMountManager::Disk>(
std::string(kTestDevicePath), std::string(kTestMountPath),
+ false, // write_disabled_by_policy
std::string(kTestSystemPath), std::string(kTestFilePath),
std::string(kTestDeviceLabel), std::string(kTestDriveLabel),
std::string(kTestVendorId), std::string(kTestVendorName),
@@ -122,6 +124,7 @@ void MockDiskMountManager::NotifyDeviceRemoveEvents() {
std::unique_ptr<DiskMountManager::Disk> disk_ptr =
base::MakeUnique<DiskMountManager::Disk>(
std::string(kTestDevicePath), std::string(kTestMountPath),
+ false, // write_disabled_by_policy
std::string(kTestSystemPath), std::string(kTestFilePath),
std::string(kTestDeviceLabel), std::string(kTestDriveLabel),
std::string(kTestVendorId), std::string(kTestVendorName),
@@ -176,6 +179,7 @@ void MockDiskMountManager::CreateDiskEntryForMountDevice(
std::unique_ptr<DiskMountManager::Disk> disk_ptr =
base::MakeUnique<DiskMountManager::Disk>(
mount_info.source_path, mount_info.mount_path,
+ false, // write_disabled_by_policy
std::string(), // system_path
mount_info.source_path, device_label,
std::string(), // drive_label

Powered by Google App Engine
This is Rietveld 408576698