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

Unified Diff: content/browser/child_process_launcher.cc

Issue 420603014: Do not set low priority on background tabs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | content/browser/renderer_host/render_process_host_impl.cc » ('j') | 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 b49a98201e129be66b14f5a5962482f299ba6c9e..a0dc5b72837af368cbd3aaca21320576f528218a 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -510,11 +510,13 @@ base::TerminationStatus ChildProcessLauncher::GetChildTerminationStatus(
}
void ChildProcessLauncher::SetProcessBackgrounded(bool background) {
- BrowserThread::PostTask(
- BrowserThread::PROCESS_LAUNCHER, FROM_HERE,
- base::Bind(
- &ChildProcessLauncher::Context::SetProcessBackgrounded,
- GetHandle(), background));
+ // TODO(wfh): re-enable this after testing if dropping the priority of
+ // backgrounded tabs is the root cause of http://crbug.com/381820.
+ // BrowserThread::PostTask(
+ // BrowserThread::PROCESS_LAUNCHER, FROM_HERE,
+ // base::Bind(
+ // &ChildProcessLauncher::Context::SetProcessBackgrounded,
+ // GetHandle(), background));
}
void ChildProcessLauncher::SetTerminateChildOnShutdown(
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698