Commit f487f57f authored by wfh@chromium.org's avatar wfh@chromium.org

Test to remove calls to tab idleNotification, to try and diagnose a bug. This...

Test to remove calls to tab idleNotification, to try and diagnose a bug.  This will be removed after a Canary run.

BUG=381820

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281901 0039d316-1c4b-4281-b951-d872f2087c98
parent efc8771d
......@@ -85,7 +85,9 @@ blink::WebSpeechSynthesizer* ContentRendererClient::OverrideSpeechSynthesizer(
}
bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
return true;
// TODO(wfh): http://crbug.com/381820 change this back to true after testing
// whether this affects tabs hanging.
return false;
}
bool ContentRendererClient::AllowPopup() {
......
......@@ -1564,8 +1564,11 @@ void RenderThreadImpl::WidgetHidden() {
#if !defined(SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE)
// TODO(vollick): Remove this this heavy-handed approach once we're polling
// the real system memory pressure.
base::MemoryPressureListener::NotifyMemoryPressure(
base::MemoryPressureListener::MEMORY_PRESSURE_MODERATE);
// TODO(wfh): http://crbug.com/381820 remove this after testing whether
// this affects tabs hanging.
// base::MemoryPressureListener::NotifyMemoryPressure(
// base::MemoryPressureListener::MEMORY_PRESSURE_MODERATE);
#endif
if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden())
ScheduleIdleHandler(kInitialIdleHandlerDelayMs);
......
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