Commit 853703c5 authored by wfh@chromium.org's avatar wfh@chromium.org

Do not set low priority on background tabs.

BUG=381820

Review URL: https://codereview.chromium.org/420603014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285802 0039d316-1c4b-4281-b951-d872f2087c98
parent f524522e
......@@ -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(
......
......@@ -2033,7 +2033,9 @@ void RenderProcessHostImpl::SetBackgrounded(bool backgrounded) {
#endif // OS_WIN
// Notify the child process of background state.
Send(new ChildProcessMsg_SetProcessBackgrounded(backgrounded));
// TODO(wfh): re-enable this after testing if dropping the priority of
// backgrounded tabs is the root cause of http://crbug.com/381820.
// Send(new ChildProcessMsg_SetProcessBackgrounded(backgrounded));
#if !defined(OS_WIN)
// Backgrounding may require elevated privileges not available to renderer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment