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

Unified Diff: chrome/browser/system_monitor/removable_device_notifications_linux.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_linux.cc
diff --git a/chrome/browser/system_monitor/removable_device_notifications_linux.cc b/chrome/browser/system_monitor/removable_device_notifications_linux.cc
index 97a7b747672322e751635288a2afa55fe5c90510..4e57eab29e70ff5ca4cbff1d8d79f2875fa5a412 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_linux.cc
+++ b/chrome/browser/system_monitor/removable_device_notifications_linux.cc
@@ -352,7 +352,7 @@ void RemovableDeviceNotificationsLinux::UpdateMtab() {
if (MediaStorageUtil::IsRemovableDevice(old_iter->second.device_id)) {
DCHECK(has_priority != priority->second.end());
if (has_priority->second) {
- ProcessDetach(old_iter->second.device_id);
+ receiver()->ProcessDetach(old_iter->second.device_id);
}
if (priority->second.size() > 1)
multiple_mounted_devices_needing_reattachment.push_back(mount_device);
@@ -389,7 +389,7 @@ void RemovableDeviceNotificationsLinux::UpdateMtab() {
const MountPointInfo& mount_info =
mount_info_map_.find(mount_point)->second;
DCHECK(MediaStorageUtil::IsRemovableDevice(mount_info.device_id));
- ProcessAttach(
+ receiver()->ProcessAttach(
mount_info.device_id, mount_info.device_name, mount_point.value());
}
@@ -455,7 +455,7 @@ void RemovableDeviceNotificationsLinux::AddNewMount(
mount_priority_map_[mount_device][mount_point] = removable;
if (removable) {
- ProcessAttach(
+ receiver()->ProcessAttach(
device_id, GetDisplayNameForDevice(partition_size_in_bytes, name),
mount_point.value());
}

Powered by Google App Engine
This is Rietveld 408576698