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

Unified Diff: content/browser/bootstrap_sandbox_mac.cc

Issue 347783002: Alter the design of the bootstrap sandbox to only take over the bootstrap port of children when nec… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 6 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 | « base/process/launch_posix.cc ('k') | content/browser/child_process_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bootstrap_sandbox_mac.cc
diff --git a/content/browser/bootstrap_sandbox_mac.cc b/content/browser/bootstrap_sandbox_mac.cc
index c0bb6f811781e67d9a4e1536dc68c3258ac51a12..347114a4b7d1e32b2a829bdd7354304e673bc1a8 100644
--- a/content/browser/bootstrap_sandbox_mac.cc
+++ b/content/browser/bootstrap_sandbox_mac.cc
@@ -40,7 +40,6 @@ class BootstrapSandboxPolicy : public BrowserChildProcessObserver {
virtual ~BootstrapSandboxPolicy();
void RegisterSandboxPolicies();
- void RegisterNPAPIPolicy();
scoped_ptr<sandbox::BootstrapSandbox> sandbox_;
};
@@ -71,15 +70,6 @@ BootstrapSandboxPolicy::~BootstrapSandboxPolicy() {
}
void BootstrapSandboxPolicy::RegisterSandboxPolicies() {
- RegisterNPAPIPolicy();
-}
-
-void BootstrapSandboxPolicy::RegisterNPAPIPolicy() {
- sandbox::BootstrapSandboxPolicy policy;
- policy.default_rule = sandbox::Rule(sandbox::POLICY_ALLOW);
- policy.rules[kBootstrapPortNameForNPAPIPlugins] =
- sandbox::Rule(sandbox_->real_bootstrap_port());
- sandbox_->RegisterSandboxPolicy(SANDBOX_TYPE_NPAPI, policy);
}
} // namespace
« no previous file with comments | « base/process/launch_posix.cc ('k') | content/browser/child_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698