Commit 1c40c247 authored by wfh@chromium.org's avatar wfh@chromium.org

Remove in-process call to SetProcessBackgrounded.

This was causing latency on switching tabs.

BUG=398103,381820

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287571 0039d316-1c4b-4281-b951-d872f2087c98
parent 7e5306e0
...@@ -36,11 +36,6 @@ void ProcessBackgroundMessageFilter::SetTimerSlack(bool background) { ...@@ -36,11 +36,6 @@ void ProcessBackgroundMessageFilter::SetTimerSlack(bool background) {
void ProcessBackgroundMessageFilter::OnProcessBackgrounded(bool background) { void ProcessBackgroundMessageFilter::OnProcessBackgrounded(bool background) {
DCHECK(base::MessageLoopForIO::IsCurrent()); DCHECK(base::MessageLoopForIO::IsCurrent());
#ifdef OS_WIN
// Windows Vista+ has a fancy process backgrounding mode that can only be set
// from within the process.
base::Process::Current().SetProcessBackgrounded(background);
#endif // OS_WIN
// Post to the main thread to set the timer slack. // Post to the main thread to set the timer slack.
main_thread_task_runner_->PostTask( main_thread_task_runner_->PostTask(
FROM_HERE, FROM_HERE,
......
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