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

Unified Diff: components/storage_monitor/portable_device_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: fix unittest build error on mac/linux/chromeos Created 6 years, 9 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/portable_device_watcher_win.cc
diff --git a/components/storage_monitor/portable_device_watcher_win.cc b/components/storage_monitor/portable_device_watcher_win.cc
index 571bdaf89f78e77c435f7abf1ef6de07b67809fd..003553eb63d1897c7b3b7883e3d194acf7ec33a5 100644
--- a/components/storage_monitor/portable_device_watcher_win.cc
+++ b/components/storage_monitor/portable_device_watcher_win.cc
@@ -632,11 +632,11 @@ void PortableDeviceWatcherWin::OnDidHandleDeviceAttachEvent(
return;
// Device can have several data partitions. Therefore, add the
- // partition identifier to the storage name. E.g.: "Nexus 7 (s10001)"
- base::string16 storage_name(name + L" (" +
+ // partition identifier to the model name. E.g.: "Nexus 7 (s10001)"
+ base::string16 model_name(name + L" (" +
storage_iter->object_temporary_id + L')');
- StorageInfo info(storage_id, storage_name, location,
- storage_name, base::string16(), base::string16(), 0);
+ StorageInfo info(storage_id, location, base::string16(), base::string16(),
+ model_name, 0);
storage_map_[storage_id] = info;
if (storage_notifications_) {
info.set_location(GetStoragePathFromStorageId(storage_id));

Powered by Google App Engine
This is Rietveld 408576698