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

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: . 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..38a6cd005bcc26b87d17d3a3c63c55bea8affcae 100644
--- a/chrome/browser/chromeos/disks/mock_disk_mount_manager.cc
+++ b/chrome/browser/chromeos/disks/mock_disk_mount_manager.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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
« no previous file with comments | « chrome/browser/chromeos/disks/disk_mount_manager.cc ('k') | chrome/browser/chromeos/extensions/file_browser_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698