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

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

Issue 12334096: Regularize ownerships and lifecycle for storage monitor platform classes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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/storage_monitor/removable_device_notifications_mac.mm
diff --git a/chrome/browser/storage_monitor/removable_device_notifications_mac.mm b/chrome/browser/storage_monitor/removable_device_notifications_mac.mm
index bc208869fd88e32665a39eae80fc09d3f2d0bd0b..ef4f76ee611713b196970ddadd147ad2cd341e56 100644
--- a/chrome/browser/storage_monitor/removable_device_notifications_mac.mm
+++ b/chrome/browser/storage_monitor/removable_device_notifications_mac.mm
@@ -70,6 +70,11 @@ RemovableDeviceNotificationsMac::RemovableDeviceNotificationsMac() {
kDADiskDescriptionWatchVolumePath,
DiskDescriptionChangedCallback,
this);
+
+ if (base::mac::IsOSLionOrLater()) {
+ image_capture_device_manager_.reset(new chrome::ImageCaptureDeviceManager);
+ image_capture_device_manager_->SetNotifications(receiver());
+ }
}
RemovableDeviceNotificationsMac::~RemovableDeviceNotificationsMac() {

Powered by Google App Engine
This is Rietveld 408576698