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

Unified Diff: content/browser/child_process_launcher.cc

Issue 246653008: AdjustRendererOOMScore isn't execute in linux. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/browser/child_process_launcher.cc
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index 3869c6841bb060c0ff330d4704e186f71738120a..86a1a617b58c415ca96dd44d4d471042afcd2d02 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -267,6 +267,10 @@ class ChildProcessLauncher::Context
base::LaunchOptions options;
options.environ = env;
options.fds_to_remap = &fds_to_map;
+#if defined(OS_LINUX)
+ options.allow_new_privs = ZygoteHostImpl::GetInstance()->
jln (very slow on Chromium) 2014/04/24 00:17:59 You are doing this for the GPU process aren't you?
+ UsingSUIDSandbox();
+#endif
#if defined(OS_MACOSX)
// Hold the MachBroker lock for the duration of LaunchProcess. The child

Powered by Google App Engine
This is Rietveld 408576698