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

Unified Diff: content/browser/child_process_launcher.cc

Issue 421373002: Do not set background priority in-process on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: do not set priority from within child process 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 a0dc5b72837af368cbd3aaca21320576f528218a..5e65042301c9a9fff4e1fcad92a37379c4d22658 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -510,13 +510,11 @@ base::TerminationStatus ChildProcessLauncher::GetChildTerminationStatus(
}
void ChildProcessLauncher::SetProcessBackgrounded(bool 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));
+ 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