commit | 5784428aeecddba5108ea95d969090e306bf3099 | [log] [tgz] |
---|---|---|
author | Yuta Kitamura <yutak@chromium.org> | Mon Nov 05 07:25:10 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Nov 05 07:25:10 2018 |
tree | 4338e450070473de399de40c4c82e82a41d8577d | |
parent | 67837e51447cc44141b52134fa41c09d1be067c8 [diff] |
Move IdleTaskRunner() from WebThreadScheduler to ThreadSchedulerImpl. The virtual function IdleTaskRunner() defined in WebThreadScheduler is not used by anybody except the scheduler internal code, so it should be defined in ThreadSchedulerImpl instead. Along with that function, the header for SingleThreadIdleTaskRunner is moved to scheduler/common, as it's only used in combination with IdleTaskRunner(). SingleThreadIdleTaskRunner uses base::RefCountedThreadSafe which is banned, but this can't be replaced with WTF::ThreadSafeRefCounted, because MainThreadSchedulerImpl having a SingleThreadIdleTaskRunner is instantiated before PartitionAlloc is initialized. The presubmit script is modified so it would allow the usage of base::RefCounted just for this file. Bug: 826203 Change-Id: I2ddcbe9a9a1af6bce5cd87e9d097be86641703fe Reviewed-on: https://chromium-review.googlesource.com/c/1306951 Commit-Queue: Yuta Kitamura <yutak@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Cr-Commit-Position: refs/heads/master@{#605273}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .