Index: content/common/sandbox_init_mac.cc |
diff --git a/content/common/sandbox_init_mac.cc b/content/common/sandbox_init_mac.cc |
index f73e85db4d109045820688b28b0924360a07169b..22a4e84a0c190472515aa11107cc8b73df27230d 100644 |
--- a/content/common/sandbox_init_mac.cc |
+++ b/content/common/sandbox_init_mac.cc |
@@ -72,6 +72,22 @@ bool GetSandboxTypeFromCommandLine(int* sandbox_type, |
return true; |
} |
+void ExplicitlyWarmupSandbox() { |
+ int sandbox_type = 0; |
+ base::FilePath allowed_dir; |
+ if (!GetSandboxTypeFromCommandLine(&sandbox_type, &allowed_dir)) |
+ return; |
+ Sandbox::SandboxWarmup(sandbox_type); |
+} |
+ |
+bool ExplicitlyEnableSandbox() { |
+ int sandbox_type = 0; |
+ base::FilePath allowed_dir; |
+ if (!GetSandboxTypeFromCommandLine(&sandbox_type, &allowed_dir)) |
+ return true; |
+ return Sandbox::EnableSandbox(sandbox_type, allowed_dir); |
+} |
+ |
bool InitializeSandbox() { |
int sandbox_type = 0; |
base::FilePath allowed_dir; |