Index: media/base/mac/avfoundation_glue.mm |
diff --git a/media/base/mac/avfoundation_glue.mm b/media/base/mac/avfoundation_glue.mm |
index 297d4a47f7c72f9565469142fd0f4994c206ac76..06e4d2bcc9ef8e5d952959c0a14f4aa7c64283e0 100644 |
--- a/media/base/mac/avfoundation_glue.mm |
+++ b/media/base/mac/avfoundation_glue.mm |
@@ -122,24 +122,6 @@ AVFoundationInternal* GetAVFoundationInternal() { |
// This contains the logic of checking whether AVFoundation is supported. |
// It's called only once and the results are cached in a static bool. |
bool LoadAVFoundationInternal() { |
- // AVFoundation is only available on OS Lion and above. |
- if (!base::mac::IsOSLionOrLater()) { |
- LogCaptureApi(CAPTURE_API_QTKIT_DUE_TO_OS_PREVIOUS_TO_LION); |
- return false; |
- } |
- |
- const base::CommandLine* command_line = |
- base::CommandLine::ForCurrentProcess(); |
- // The force-qtkit flag takes precedence over enable-avfoundation. |
- if (command_line->HasSwitch(switches::kForceQTKit)) { |
- LogCaptureApi(CAPTURE_API_QTKIT_FORCED_BY_FLAG); |
- return false; |
- } |
- |
- if (!command_line->HasSwitch(switches::kEnableAVFoundation)) { |
- LogCaptureApi(CAPTURE_API_QTKIT_DUE_TO_NO_FLAG); |
- return false; |
- } |
g_avfoundation_handle.Initialize(TlsCleanup); |
g_avfoundation_handle.Set(new AVFoundationInternal()); |
const bool ret = [AVFoundationGlue::AVFoundationBundle() load]; |