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

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: 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/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..38e3b2f699815272d55c2d2b6eadd2e929da4ad7 100644
--- a/components/storage_monitor/portable_device_watcher_win.cc
+++ b/components/storage_monitor/portable_device_watcher_win.cc
@@ -635,8 +635,8 @@ void PortableDeviceWatcherWin::OnDidHandleDeviceAttachEvent(
// partition identifier to the storage name. E.g.: "Nexus 7 (s10001)"
base::string16 storage_name(name + L" (" +
vandebo (ex-Chrome) 2014/03/03 19:58:31 Should storage_name be passed as the model? It's
Haojian Wu 2014/03/04 05:00:12 Sounds fine. Done.
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, storage_name, base::string16(),
+ base::string16(), 0);
storage_map_[storage_id] = info;
if (storage_notifications_) {
info.set_location(GetStoragePathFromStorageId(storage_id));

Powered by Google App Engine
This is Rietveld 408576698