| Index: content/browser/browser_main_loop.cc
|
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
| index e96d2f9261c2a58bb5d08794476dff03f9825fd4..1189983eaf03ac7ca8d20f0b0b0823afbac67029 100644
|
| --- a/content/browser/browser_main_loop.cc
|
| +++ b/content/browser/browser_main_loop.cc
|
| @@ -168,6 +168,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"
|
| @@ -732,6 +736,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
|
|
|