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

Unified Diff: chrome/browser/system_monitor/removable_device_notifications_mac.mm

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_mac.mm
diff --git a/chrome/browser/system_monitor/removable_device_notifications_mac.mm b/chrome/browser/system_monitor/removable_device_notifications_mac.mm
index 79a27313464e1ffd192e7d9f81de9b31ecc56947..223bb18e1d0e799792ced7b806abf80a17905b89 100644
--- a/chrome/browser/system_monitor/removable_device_notifications_mac.mm
+++ b/chrome/browser/system_monitor/removable_device_notifications_mac.mm
@@ -90,7 +90,7 @@ void RemovableDeviceNotificationsMac::UpdateDisk(
// notification now. This is used for devices that are being removed or
// devices that have changed.
if (ShouldPostNotificationForDisk(it->second)) {
- ProcessDetach(it->second.device_id());
+ receiver()->ProcessDetach(it->second.device_id());
}
}
@@ -104,7 +104,8 @@ void RemovableDeviceNotificationsMac::UpdateDisk(
if (ShouldPostNotificationForDisk(info)) {
string16 display_name = GetDisplayNameForDevice(
info.total_size_in_bytes(), info.device_name());
- ProcessAttach(info.device_id(), display_name, info.mount_point().value());
+ receiver()->ProcessAttach(
+ info.device_id(), display_name, info.mount_point().value());
}
}
}

Powered by Google App Engine
This is Rietveld 408576698