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

Unified Diff: media/base/mac/avfoundation_glue.mm

Issue 1815983003: Remove deprecated QTKit Video Capture Support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/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];

Powered by Google App Engine
This is Rietveld 408576698