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

Unified Diff: content/browser/bootstrap_sandbox_manager_mac.cc

Issue 1352623003: Enable the bootstrap sandbox by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bootstrap_sandbox_manager_mac.cc
diff --git a/content/browser/bootstrap_sandbox_manager_mac.cc b/content/browser/bootstrap_sandbox_manager_mac.cc
index 48d25491429665a76e9edc43e6af364f6fff4965..ae6df85dd1bb2340ee916cfd13e19f04935b5b45 100644
--- a/content/browser/bootstrap_sandbox_manager_mac.cc
+++ b/content/browser/bootstrap_sandbox_manager_mac.cc
@@ -4,6 +4,7 @@
#include "content/browser/bootstrap_sandbox_manager_mac.h"
+#include "base/command_line.h"
#include "base/logging.h"
#include "base/mac/mac_util.h"
#include "content/browser/browser_io_surface_manager_mac.h"
@@ -12,13 +13,15 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_data.h"
#include "content/public/browser/render_process_host.h"
+#include "content/public/common/content_switches.h"
#include "sandbox/mac/bootstrap_sandbox.h"
namespace content {
// static
bool BootstrapSandboxManager::ShouldEnable() {
- return false;
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableBootstrapSandbox);
}
// static
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698