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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1637083002: Add CdmService to keep track of CDMs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + add default copy constructor Created 4 years, 8 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 | « chrome/common/chrome_content_client.cc ('k') | content/browser/media/cdm_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 1f77258d8df738cac0a5efbef2df7b78dd3e1711..ac748e83e4f8c2ec0e8a304e624dd6a1a1d61f40 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -169,6 +169,10 @@
#include "content/browser/plugin_service_impl.h"
#endif
+#if defined(ENABLE_MOJO_CDM) && defined(ENABLE_PEPPER_CDMS)
+#include "content/browser/media/cdm_service_impl.h"
+#endif
+
#if defined(USE_X11)
#include "ui/base/x/x11_util_internal.h"
#include "ui/gfx/x/x11_connection.h" // nogncheck
@@ -737,6 +741,13 @@ int BrowserMainLoop::PreCreateThreads() {
}
#endif
+#if defined(ENABLE_MOJO_CDM) && defined(ENABLE_PEPPER_CDMS)
+ // Prior to any processing happening on the IO thread, we create the
+ // CDM service as it is predominantly used from the IO thread. This must
+ // be called on the main thread since it involves file path checks.
+ CdmService::GetInstance()->Init();
+#endif
+
#if defined(OS_MACOSX)
// The WindowResizeHelper allows the UI thread to wait on specific renderer
// and GPU messages from the IO thread. Initializing it before the IO thread
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | content/browser/media/cdm_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698