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

Unified Diff: chrome/browser/chromeos/disks/mock_disk_mount_manager.cc

Issue 9019002: [CrosDisksClient] Determine device type from DeviceMediaType property sent by cros-disks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: satorux Created 8 years, 11 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/disks/mock_disk_mount_manager.cc
diff --git a/chrome/browser/chromeos/disks/mock_disk_mount_manager.cc b/chrome/browser/chromeos/disks/mock_disk_mount_manager.cc
index 2ca54abc6b0b6698aadb044d947e1f9524ee69dc..502779d785320c6d4ecd59388d9d38352d28dc57 100644
--- a/chrome/browser/chromeos/disks/mock_disk_mount_manager.cc
+++ b/chrome/browser/chromeos/disks/mock_disk_mount_manager.cc
@@ -61,7 +61,7 @@ void MockDiskMountManager::NotifyDeviceInsertEvents() {
std::string(),
std::string(kTestDriveLabel),
std::string(kTestSystemPathPrefix),
- FLASH,
+ DEVICE_TYPE_USB,
4294967295U,
false, // is_parent
false, // is_read_only
@@ -91,7 +91,7 @@ void MockDiskMountManager::NotifyDeviceInsertEvents() {
std::string(kTestDeviceLabel),
std::string(kTestDriveLabel),
std::string(kTestSystemPathPrefix),
- FLASH,
+ DEVICE_TYPE_MOBILE,
1073741824,
false, // is_parent
false, // is_read_only
@@ -114,7 +114,7 @@ void MockDiskMountManager::NotifyDeviceRemoveEvents() {
std::string(kTestDeviceLabel),
std::string(kTestDriveLabel),
std::string(kTestSystemPathPrefix),
- FLASH,
+ DEVICE_TYPE_SD,
1073741824,
false, // is_parent
false, // is_read_only

Powered by Google App Engine
This is Rietveld 408576698