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

Unified Diff: components/storage_monitor/test_volume_mount_watcher_win.cc

Issue 120303003: [StorageMonitor] Move gallery name generation to StorageInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 6 years, 10 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: components/storage_monitor/test_volume_mount_watcher_win.cc
diff --git a/components/storage_monitor/test_volume_mount_watcher_win.cc b/components/storage_monitor/test_volume_mount_watcher_win.cc
index 50c22b56b73321030097ddcd5cb72d823130fe97..cfd1a3944a170c461533871e64a357755d8ee445 100644
--- a/components/storage_monitor/test_volume_mount_watcher_win.cc
+++ b/components/storage_monitor/test_volume_mount_watcher_win.cc
@@ -76,8 +76,8 @@ bool GetMassStorageDeviceDetails(const base::FilePath& device_path,
unique_id[11] = device_path.value()[0];
std::string device_id = StorageInfo::MakeDeviceId(type, unique_id);
base::string16 storage_label = path.Append(L" Drive").LossyDisplayName();
- *info = StorageInfo(device_id, base::string16(), path.value(), storage_label,
- base::string16(), base::string16(), 1000000);
+ *info = StorageInfo(device_id, path.value(), storage_label, base::string16(),
+ base::string16(), 1000000);
return true;
}
@@ -97,9 +97,8 @@ void TestVolumeMountWatcherWin::AddDeviceForTesting(
const std::string& device_id,
const base::string16& device_name,
vandebo (ex-Chrome) 2014/03/03 19:58:31 nit: device_label ?
Haojian Wu 2014/03/04 05:00:12 Done.
uint64 total_size_in_bytes) {
- StorageInfo info(device_id, device_name, device_path.value(),
- base::string16(), base::string16(), base::string16(),
- total_size_in_bytes);
+ StorageInfo info(device_id, device_path.value(), device_name,
+ base::string16(), base::string16(), total_size_in_bytes);
HandleDeviceAttachEventOnUIThread(device_path, info);
}

Powered by Google App Engine
This is Rietveld 408576698