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

Unified Diff: chrome/browser/chrome_browser_main_mac.mm

Issue 1153063002: Initialize AVFoundation explicitly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ppapi tests Created 5 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
« no previous file with comments | « no previous file | chrome/test/ppapi/ppapi_test.cc » ('j') | content/test/ppapi/ppapi_test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main_mac.mm
diff --git a/chrome/browser/chrome_browser_main_mac.mm b/chrome/browser/chrome_browser_main_mac.mm
index c097c49e4271d44132a9336d5f5202763231de42..25c17ad2a360233c49ca671b9b2def102ba3b81d 100644
--- a/chrome/browser/chrome_browser_main_mac.mm
+++ b/chrome/browser/chrome_browser_main_mac.mm
@@ -28,6 +28,7 @@
#include "components/metrics/metrics_service.h"
#include "content/public/common/main_function_params.h"
#include "content/public/common/result_codes.h"
+#import "media/base/mac/avfoundation_glue.h"
#include "ui/base/l10n/l10n_util_mac.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/resource/resource_handle.h"
@@ -121,6 +122,9 @@ void ChromeBrowserMainPartsMac::PreMainMessageLoopStart() {
// The framework is only distributed with branded Google Chrome builds.
[[KeystoneGlue defaultKeystoneGlue] registerWithKeystone];
+ // Initialize AVFoundation if supported, for audio and video.
+ AVFoundationGlue::InitializeAVFoundation();
jam 2015/05/26 23:13:47 i think we want this in src/content so that all co
tommi (sloooow) - chröme 2015/05/27 09:11:02 Yes, makes sense. Put it in BrowserMainLoop::PreC
+
// Disk image installation is sort of a first-run task, so it shares the
// no first run switches.
//
« no previous file with comments | « no previous file | chrome/test/ppapi/ppapi_test.cc » ('j') | content/test/ppapi/ppapi_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698