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

Unified Diff: chrome/browser/storage_monitor/storage_monitor.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/storage_monitor.cc
===================================================================
--- chrome/browser/storage_monitor/storage_monitor.cc (revision 201619)
+++ chrome/browser/storage_monitor/storage_monitor.cc (working copy)
@@ -142,16 +142,16 @@
void StorageMonitor::ProcessAttach(const StorageInfo& info) {
{
base::AutoLock lock(storage_lock_);
- if (ContainsKey(storage_map_, info.device_id)) {
+ if (ContainsKey(storage_map_, info.device_id())) {
// This can happen if our unique id scheme fails. Ignore the incoming
// non-unique attachment.
return;
}
- storage_map_.insert(std::make_pair(info.device_id, info));
+ storage_map_.insert(std::make_pair(info.device_id(), info));
}
- DVLOG(1) << "RemovableStorageAttached with name " << UTF16ToUTF8(info.name)
- << " and id " << info.device_id;
+ DVLOG(1) << "RemovableStorageAttached with name " << UTF16ToUTF8(info.name())
+ << " and id " << info.device_id();
observer_list_->Notify(
&RemovableStorageObserver::OnRemovableStorageAttached, info);
}
« no previous file with comments | « chrome/browser/storage_monitor/storage_info.cc ('k') | chrome/browser/storage_monitor/storage_monitor_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698