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

Unified Diff: content/app/content_main_runner.cc

Issue 2582463003: media: Verify CDM Host files (Closed)
Patch Set: Created 4 years 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 | content/common/BUILD.gn » ('j') | content/common/media/cdm_host_file.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | content/common/BUILD.gn » ('j') | content/common/media/cdm_host_file.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698