  
    if (!capture_device_)
 diff --git a/media/media.gyp b/media/media.gyp
-index 6c1b76e..0cab40c 100644
+index 329f0c7..26c6597 100644
 --- a/media/media.gyp
 +++ b/media/media.gyp
-@@ -488,8 +488,6 @@
-         'capture/video/mac/video_capture_device_factory_mac.mm',
-         'capture/video/mac/video_capture_device_mac.h',
-         'capture/video/mac/video_capture_device_mac.mm',
--        'capture/video/mac/video_capture_device_qtkit_mac.h',
--        'capture/video/mac/video_capture_device_qtkit_mac.mm',
-         'capture/video/video_capture_device.cc',
-         'capture/video/video_capture_device.h',
-         'capture/video/video_capture_device_factory.cc',
-@@ -1009,7 +1007,6 @@
+@@ -956,7 +956,6 @@
                '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
                '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
                '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',

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

diff --git a/media/capture/device_monitor_mac.mm b/media/capture/device_monitor_mac.mm
index aab9884..8951a44 100644
--- a/media/capture/device_monitor_mac.mm
+++ b/media/capture/device_monitor_mac.mm
@@ -4,7 +4,9 @@
 
 #include "media/capture/device_monitor_mac.h"
 
+#ifndef MAS_BUILD
 #import <QTKit/QTKit.h>
