  
  #include <set>
  
-@@ -151,6 +153,7 @@ class QTKitMonitorImpl : public DeviceMonitorMacImpl {
+@@ -143,6 +145,7 @@ class QTKitMonitorImpl : public DeviceMonitorMacImpl {
  
- QTKitMonitorImpl::QTKitMonitorImpl(content::DeviceMonitorMac* monitor)
+ QTKitMonitorImpl::QTKitMonitorImpl(media::DeviceMonitorMac* monitor)
      : DeviceMonitorMacImpl(monitor) {
 +#ifndef MAS_BUILD
    NSNotificationCenter* nc = [NSNotificationCenter defaultCenter];
    device_arrival_ =
        [nc addObserverForName:QTCaptureDeviceWasConnectedNotification
-@@ -170,25 +173,31 @@ QTKitMonitorImpl::QTKitMonitorImpl(content::DeviceMonitorMac* monitor)
-                        queue:nil
+@@ -165,23 +168,29 @@ QTKitMonitorImpl::QTKitMonitorImpl(media::DeviceMonitorMac* monitor)
                    usingBlock:^(NSNotification* notification) {
-                       OnAttributeChanged(notification);}];
+                     OnAttributeChanged(notification);
+                   }];
 +#endif
  }
  

diff --git a/content/browser/device_monitor_mac.mm b/content/browser/device_monitor_mac.mm
index 248b99d..c3e1a3e 100644
--- a/content/browser/device_monitor_mac.mm
+++ b/content/browser/device_monitor_mac.mm
@@ -4,7 +4,9 @@
 
 #include "content/browser/device_monitor_mac.h"
 
+#ifndef MAS_BUILD
 #import <QTKit/QTKit.h>

   std::vector<DeviceInfo> snapshot_devices;
 
   NSArray* devices = [QTCaptureDevice inputDevices];
@@ -206,6 +215,7 @@ void QTKitMonitorImpl::OnDeviceChanged() {
         DeviceInfo([[device uniqueID] UTF8String], device_type));
   }
   ConsolidateDevicesListAndNotify(snapshot_devices);
