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

Unified Diff: content/browser/browser_main_loop.cc

Issue 303293002: Initialize the bootstrap sandbox in the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename constant 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 | « content/browser/bootstrap_sandbox_mac.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/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 6aef2203bc85693c3124773b35134905b5bf99c7..41bd7b8b7f593078bf7c0f21a1336f0562112baf 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -85,6 +85,7 @@
#endif
#if defined(OS_MACOSX) && !defined(OS_IOS)
+#include "content/browser/bootstrap_sandbox_mac.h"
#include "content/browser/theme_helper_mac.h"
#endif
@@ -1038,7 +1039,13 @@ int BrowserMainLoop::BrowserThreadsStarted() {
#if defined(OS_MACOSX)
ThemeHelperMac::GetInstance();
-#endif
+ if (ShouldEnableBootstrapSandbox()) {
+ TRACE_EVENT0("startup",
+ "BrowserMainLoop::BrowserThreadsStarted:BootstrapSandbox");
+ CHECK(GetBootstrapSandbox());
+ }
+#endif // defined(OS_MACOSX)
+
#endif // !defined(OS_IOS)
return result_code_;
« no previous file with comments | « content/browser/bootstrap_sandbox_mac.cc ('k') | content/browser/child_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698