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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1076033002: Disable BackgroundRendererProcesses in absence of Finch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 91dd8b3c4c73b805c4b63dcf2de938b1558bde90..31c284ef4117995cedc5cda0f4514bcc260fde66 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -2228,8 +2228,8 @@ void RenderProcessHostImpl::SetBackgrounded(bool backgrounded) {
// get coverage on the perf waterfall.
base::FieldTrial* trial =
base::FieldTrialList::Find("BackgroundRendererProcesses");
- if (!trial || (trial->group_name() != "Disallow" &&
- trial->group_name() != "AllowBackgroundModeFromRenderer")) {
+ if (trial && (trial->group_name() != "Disallow" &&
+ trial->group_name() != "AllowBackgroundModeFromRenderer")) {
child_process_launcher_->SetProcessBackgrounded(backgrounded);
}
#else
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698