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

Unified Diff: content/browser/child_process_launcher.cc

Issue 6713089: Add support for the cgroups config we have in chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review changes and moved priority changing to process launcher thread Created 9 years, 9 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 | « base/process_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/child_process_launcher.cc
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index 1b65c72b69c0cafad0951cd26d4c72d0b6766030..171cbd78303944b283308a91b241bcb40b696889 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -245,6 +245,11 @@ class ChildProcessLauncher::Context
process_.set_handle(base::kNullProcessHandle);
}
+ void SetProcessBackgrounded(bool background) {
+ DCHECK(!starting_);
+ process_.SetProcessBackgrounded(background);
+ }
+
static void TerminateInternal(
#if defined(OS_LINUX)
bool zygote,
@@ -343,6 +348,10 @@ base::TerminationStatus ChildProcessLauncher::GetChildTerminationStatus(
}
void ChildProcessLauncher::SetProcessBackgrounded(bool background) {
- DCHECK(!context_->starting_);
- context_->process_.SetProcessBackgrounded(background);
+ BrowserThread::PostTask(
+ BrowserThread::PROCESS_LAUNCHER, FROM_HERE,
+ NewRunnableMethod(
+ context_.get(),
+ &ChildProcessLauncher::Context::SetProcessBackgrounded,
+ background));
}
« no previous file with comments | « base/process_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698