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

Unified Diff: content/worker/worker_main.cc

Issue 13814027: Linux: make current InitializeSandbox() private. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
Index: content/worker/worker_main.cc
diff --git a/content/worker/worker_main.cc b/content/worker/worker_main.cc
index 981d0a5cb7a2682fde11cf310e734e9af93dd880..788c884794a85fbd850b62f3f7578fa944c33030 100644
--- a/content/worker/worker_main.cc
+++ b/content/worker/worker_main.cc
@@ -10,6 +10,7 @@
#include "base/string_util.h"
#include "base/threading/platform_thread.h"
#include "content/common/child_process.h"
+#include "content/common/sandbox_linux.h"
#include "content/public/common/main_function_params.h"
#include "content/public/common/sandbox_init.h"
#include "content/worker/worker_thread.h"
@@ -53,7 +54,7 @@ int WorkerMain(const MainFunctionParams& parameters) {
#elif defined(OS_LINUX)
// On Linux, the sandbox must be initialized early, before any thread is
// created.
- InitializeSandbox();
+ LinuxSandbox::InitializeSandbox(LinuxSandbox::SANDBOX_CONFIG_WORKER);
#endif
ChildProcess worker_process;

Powered by Google App Engine
This is Rietveld 408576698