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

Unified Diff: media/video/capture/video_capture_device_factory.cc

Issue 276383002: VideoCaptureDeviceWin: Extract class-static method into a Factory (both MF/DS) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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: media/video/capture/video_capture_device_factory.cc
diff --git a/media/video/capture/video_capture_device_factory.cc b/media/video/capture/video_capture_device_factory.cc
index 661900c4118f11091462c670f43e4e6420af02dc..c8e6b2bc5ff760c423b5ff29699da3e820c76a79 100644
--- a/media/video/capture/video_capture_device_factory.cc
+++ b/media/video/capture/video_capture_device_factory.cc
@@ -11,6 +11,8 @@
#if defined(OS_MACOSX)
#include "media/video/capture/mac/video_capture_device_factory_mac.h"
+#elif defined(OS_WIN)
+#include "media/video/capture/win/video_capture_device_factory_win.h"
#endif
namespace media {
@@ -33,6 +35,9 @@ scoped_ptr<VideoCaptureDeviceFactory>
#if defined(OS_MACOSX)
return scoped_ptr<VideoCaptureDeviceFactory>(new
VideoCaptureDeviceFactoryMac());
+#elif defined(OS_WIN)
+ return scoped_ptr<VideoCaptureDeviceFactory>(new
+ VideoCaptureDeviceFactoryWin());
#else
return scoped_ptr<VideoCaptureDeviceFactory>(new
VideoCaptureDeviceFactory());

Powered by Google App Engine
This is Rietveld 408576698