Index: content/app/content_main_runner.cc |
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc |
index 604acb0165115bce865463c258eee0a876ab3495..c13ae9bce959031f5e42ab8798eb56ea74ecc944 100644 |
--- a/content/app/content_main_runner.cc |
+++ b/content/app/content_main_runner.cc |
@@ -48,6 +48,7 @@ |
#include "content/browser/gpu/gpu_process_host.h" |
#include "content/browser/renderer_host/render_process_host_impl.h" |
#include "content/browser/utility_process_host_impl.h" |
+#include "content/common/media/cdm_host_files.h" |
#include "content/common/set_process_title.h" |
#include "content/common/url_schemes.h" |
#include "content/gpu/in_process_gpu_thread.h" |
@@ -333,6 +334,15 @@ int RunZygote(const MainFunctionParams& main_function_params, |
command_line.GetSwitchValueASCII(switches::kProcessType); |
ContentClientInitializer::Set(process_type, delegate); |
+#if BUILDFLAG(ENABLE_PEPPER_CDMS) |
+ if (process_type != switches::kPpapiPluginProcess) { |
+ DVLOG(1) << "Closing CDM files for non-ppapi process."; |
+ CdmHostFiles::TakeGlobalInstance().reset(); |
+ } else { |
+ DVLOG(1) << "Not closing CDM files for ppapi process."; |
+ } |
+#endif |
+ |
MainFunctionParams main_params(command_line); |
main_params.zygote_child = true; |