compositor_will_send_main_frame_not_expected flag should not be set when no PageSchedulers exist

When we set compositor_will_send_main_frame_not_expected flag when no PageSchedulers exist, MainThreadSchedulerImpl::BeginMainFrameNotExpectedUntil() never gets called. This means that StartIdlePeriod rarely gets called and the idle tasks may not be executed for a long time.

After this CL, compositor_will_send_main_frame_not_expected will not be set when no PageSchedulers exist, so MainThreadSchedulerImpl will try calling RequestBeginMainFrameNotExpected next time.

Bug: 862589
Change-Id: I06f9c813df6cc7270269d9ffb3a01f24b9c911ce
Reviewed-on: https://chromium-review.googlesource.com/1134630
Commit-Queue: Keishi Hattori <keishi@chromium.org>
Reviewed-by: Sami Kyöstilä <skyostil@chromium.org>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575938}
8 files changed