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

Unified Diff: content/browser/utility_process_host_impl.cc

Issue 12805004: Remove mention of the nacl process in content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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
Index: content/browser/utility_process_host_impl.cc
===================================================================
--- content/browser/utility_process_host_impl.cc (revision 189099)
+++ content/browser/utility_process_host_impl.cc (working copy)
@@ -20,8 +20,31 @@
#include "ui/base/ui_base_switches.h"
#include "webkit/plugins/plugin_switches.h"
+#if defined(OS_WIN)
+#include "content/public/common/sandboxed_process_launcher_delegate.h"
+#endif
+
namespace content {
+#if defined(OS_WIN)
+// NOTE: changes to this class need to be reviewed by the security team.
+class UtilitySandboxedProcessLauncherDelegate
+ : public SandboxedProcessLauncherDelegate {
+ public:
+ explicit UtilitySandboxedProcessLauncherDelegate(
+ const base::FilePath& exposed_dir) : exposed_dir_(exposed_dir) {}
+ virtual ~UtilitySandboxedProcessLauncherDelegate() {}
+
+ virtual void PreSandbox(bool* disable_default_policy,
+ base::FilePath* exposed_dir) OVERRIDE {
+ *exposed_dir = exposed_dir_;
+ }
+
+private:
+ base::FilePath exposed_dir_;
+};
+#endif
+
UtilityProcessHost* UtilityProcessHost::Create(
UtilityProcessHostClient* client,
base::SequencedTaskRunner* client_task_runner) {
@@ -170,7 +193,7 @@
process_->Launch(
#if defined(OS_WIN)
- exposed_dir_,
+ new UtilitySandboxedProcessLauncherDelegate(exposed_dir_),
#elif defined(OS_POSIX)
use_zygote,
env_,
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698