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

Unified Diff: chrome/browser/system_monitor/removable_device_notifications_chromeos.cc

Issue 12147002: Add a receiver interface to RemovableStorageNotifications. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging Created 7 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: chrome/browser/system_monitor/removable_device_notifications_chromeos.cc
diff --git a/chrome/browser/system_monitor/removable_device_notifications_chromeos.cc b/chrome/browser/system_monitor/removable_device_notifications_chromeos.cc
index 7378e49801456f5715387089c3f695d6403bb876..14b533089d584dbf2538d99bed175497eb849b1a 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_chromeos.cc
+++ b/chrome/browser/system_monitor/removable_device_notifications_chromeos.cc
@@ -156,7 +156,7 @@ void RemovableDeviceNotificationsCros::OnMountEvent(
MountMap::iterator it = mount_map_.find(mount_info.mount_path);
if (it == mount_map_.end())
return;
- ProcessDetach(it->second.storage_info.device_id);
+ receiver()->ProcessDetach(it->second.storage_info.device_id);
mount_map_.erase(it);
break;
}
@@ -246,7 +246,7 @@ void RemovableDeviceNotificationsCros::AddMountedPathOnUIThread(
storage_size_in_bytes
};
mount_map_.insert(std::make_pair(mount_info.mount_path, object_info));
- ProcessAttach(
+ receiver()->ProcessAttach(
device_id,
chrome::GetDisplayNameForDevice(storage_size_in_bytes, device_label),
mount_info.mount_path);

Powered by Google App Engine
This is Rietveld 408576698