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

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: in progress... changed to not require mtp manager in linux for tests. 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 16480b0c3bfd2371e40cf1de59fe52c6c43c59d8..d743fa944bf7fd629dfee37903717c117c8e5c34 100644
--- a/chrome/browser/storage_monitor/removable_device_notifications_mac.mm
+++ b/chrome/browser/storage_monitor/removable_device_notifications_mac.mm
@@ -4,6 +4,8 @@
#include "chrome/browser/storage_monitor/removable_device_notifications_mac.h"
+#include "base/mac/mac_util.h"
+#include "chrome/browser/storage_monitor/image_capture_device_manager.h"
#include "chrome/browser/storage_monitor/media_device_notifications_utils.h"
#include "content/public/browser/browser_thread.h"
@@ -70,6 +72,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