Run load state update timer only when needed
commit9d01994498c14fbb7a84ef7c423ea8be9501cd31
authorandresantoso <andresantoso@chromium.org>
Wed, 27 May 2015 17:01:08 +0000 (27 10:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 27 May 2015 17:02:02 +0000 (27 17:02 +0000)
tree2658f94052916f8f3c81f7f7b1a019b20f70f430
parent4260b2a2bfdbf8ea693f4e809764c53e4c0d7eca
Run load state update timer only when needed

Run the load state update timer only when there is any tab that is loading.
Otherwise, the timer would run indefinitely on pages using a hanging GET
request.

BUG=483287

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

Cr-Commit-Position: refs/heads/master@{#331588}
content/browser/loader/resource_dispatcher_host_impl.cc
content/browser/loader/resource_dispatcher_host_impl.h
content/browser/loader/resource_scheduler.cc
content/browser/loader/resource_scheduler.h
content/public/browser/web_contents.h