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

Unified Diff: content/browser/child_process_launcher.cc

Issue 1378753002: Stop warnings resulting from unimplemented SetProcessBackgrounded(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/process_unittest.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 bc7c42d898342e2797f92e45a9d4cadc2ff90a36..53d21fdb289fcf55753a4cb0c1c980fc084ae45b 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -313,7 +313,9 @@ void TerminateOnLauncherThread(bool zygote, base::Process process) {
void SetProcessBackgroundedOnLauncherThread(base::Process process,
bool background) {
DCHECK_CURRENTLY_ON(BrowserThread::PROCESS_LAUNCHER);
- process.SetProcessBackgrounded(background);
+ if (process.CanBackgroundProcesses()) {
+ process.SetProcessBackgrounded(background);
+ }
#if defined(OS_ANDROID)
SetChildProcessInForeground(process.Handle(), !background);
#endif
« no previous file with comments | « base/process/process_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698