summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_thread_impl.h
diff options
context:
space:
mode:
authorqsr@chromium.org <qsr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-20 14:18:22 +0000
committerqsr@chromium.org <qsr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-20 14:18:22 +0000
commit26e82329adab3219c66c66aeb155da153ba10573 (patch)
tree745a4fdf3a3d25e7ad53b155087407d163cd4591 /content/renderer/render_thread_impl.h
parentf87514078928f6e5781b4818838f091d8cbdda3d (diff)
downloadchromium_src-26e82329adab3219c66c66aeb155da153ba10573.zip
chromium_src-26e82329adab3219c66c66aeb155da153ba10573.tar.gz
chromium_src-26e82329adab3219c66c66aeb155da153ba10573.tar.bz2
Disable the idle handler timer when no action is expected.
On Android, the webkit timer are disabled after the application is in the background for 5 minutes. When this happens, there is no reason to let the idle handler timer run indefinitly. This CL disables the timer once v8 reported that it will not take any further action. BUG=333875 Review URL: https://codereview.chromium.org/136903002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_thread_impl.h')
-rw-r--r--content/renderer/render_thread_impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 05b18f2..3670165 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -449,6 +449,7 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
bool suspend_webkit_shared_timer_;
bool notify_webkit_of_modal_loop_;
+ bool webkit_shared_timer_suspended_;
// The following flag is used to control layout test specific behavior.
bool layout_test_mode_;