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

Unified Diff: chrome/browser/storage_monitor/portable_device_watcher_win.cc

Issue 15294020: StorageMonitor: Make StorageInfo a real class. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address nits Created 7 years, 7 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/storage_monitor/portable_device_watcher_win.cc
===================================================================
--- chrome/browser/storage_monitor/portable_device_watcher_win.cc (revision 201619)
+++ chrome/browser/storage_monitor/portable_device_watcher_win.cc (working copy)
@@ -522,7 +522,7 @@
return false;
MTPDeviceMap::const_iterator device_iter =
- device_map_.find(storage_map_iter->second.location);
+ device_map_.find(storage_map_iter->second.location());
if (device_iter == device_map_.end())
return false;
const StorageObjects& storage_objects = device_iter->second;
@@ -530,7 +530,7 @@
storage_objects.begin(); storage_object_iter != storage_objects.end();
++storage_object_iter) {
if (storage_device_id == storage_object_iter->object_persistent_id) {
- *device_location = storage_map_iter->second.location;
+ *device_location = storage_map_iter->second.location();
*storage_object_id = storage_object_iter->object_temporary_id;
return true;
}
@@ -626,7 +626,7 @@
string16(), string16(), string16(), 0);
storage_map_[storage_id] = info;
if (storage_notifications_) {
- info.location = GetStoragePathFromStorageId(storage_id);
+ info.set_location(GetStoragePathFromStorageId(storage_id));
storage_notifications_->ProcessAttach(info);
}
}
@@ -647,8 +647,10 @@
std::string storage_id = storage_object_iter->object_persistent_id;
MTPStorageMap::iterator storage_map_iter = storage_map_.find(storage_id);
DCHECK(storage_map_iter != storage_map_.end());
- if (storage_notifications_)
- storage_notifications_->ProcessDetach(storage_map_iter->second.device_id);
+ if (storage_notifications_) {
+ storage_notifications_->ProcessDetach(
+ storage_map_iter->second.device_id());
+ }
storage_map_.erase(storage_map_iter);
}
device_map_.erase(device_iter);

Powered by Google App Engine
This is Rietveld 408576698