summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-29 20:21:31 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-29 20:21:31 +0000
commita83e8ca97ee2c61707811bf05d3b9c98ff9cec5b (patch)
treeb2127560b67f594b14e7cdb53cdc1caa727f153f /chrome
parent2532d183b1cdf60e166f6c376c5912c113b307db (diff)
downloadchromium_src-a83e8ca97ee2c61707811bf05d3b9c98ff9cec5b.zip
chromium_src-a83e8ca97ee2c61707811bf05d3b9c98ff9cec5b.tar.gz
chromium_src-a83e8ca97ee2c61707811bf05d3b9c98ff9cec5b.tar.bz2
linux: tickle the render sandbox early so it forks at the right time
Otherwise, the first time the singleton is touched we've already started loading a page! We surely have a bunch of threads going at that point. Review URL: http://codereview.chromium.org/245039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/app/chrome_dll_main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc
index 63dcc70..28f95f2 100644
--- a/chrome/app/chrome_dll_main.cc
+++ b/chrome/app/chrome_dll_main.cc
@@ -59,6 +59,7 @@
#endif
#include "chrome/app/scoped_ole_initializer.h"
#include "chrome/browser/renderer_host/render_process_host.h"
+#include "chrome/browser/renderer_host/render_sandbox_host_linux.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_counters.h"
#include "chrome/common/chrome_descriptors.h"
@@ -584,6 +585,9 @@ int ChromeMain(int argc, char** argv) {
#endif
} else if (process_type.empty()) {
#if defined(OS_LINUX)
+ // Tickle the sandbox host so it forks now.
+ Singleton<RenderSandboxHostLinux>().get();
+
// We want to be sure to init NSPR on the main thread.
base::EnsureNSPRInit();