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

Unified Diff: content/common/sandbox_init_mac.cc

Issue 2921733002: Add flags for v2 sandbox to Chrome and Helper executable. (Closed)
Patch Set: Address nits Created 3 years, 7 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 | « chrome/app/chrome_exe_main_mac.cc ('k') | 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/common/sandbox_init_mac.cc
diff --git a/content/common/sandbox_init_mac.cc b/content/common/sandbox_init_mac.cc
index 36a4058c35e3a5f449f5704629dad98117fd86a3..b63600becf012d364ea8284cae2e19c2b1b0c3a3 100644
--- a/content/common/sandbox_init_mac.cc
+++ b/content/common/sandbox_init_mac.cc
@@ -10,6 +10,7 @@
#include "content/common/sandbox_mac.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/sandbox_init.h"
+#include "sandbox/mac/seatbelt.h"
namespace content {
@@ -36,6 +37,8 @@ bool GetSandboxTypeFromCommandLine(int* sandbox_type,
*base::CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kNoSandbox))
return false;
+ if (command_line.HasSwitch(switches::kV2SandboxedEnabled))
+ CHECK(sandbox::Seatbelt::IsSandboxed());
std::string process_type =
command_line.GetSwitchValueASCII(switches::kProcessType);
« no previous file with comments | « chrome/app/chrome_exe_main_mac.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698