commit | 1f53ca359237217e721c9a3bc74be92f30a87c37 | [log] [tgz] |
---|---|---|
author | Gabriel Charette <gab@chromium.org> | Tue Aug 07 21:31:17 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Aug 07 21:31:17 2018 |
tree | 719112d259b543add3a976cfd7351aa4e1836c1f | |
parent | ddeb4c0cccc2d8154c98f730808c95dde006e4ff [diff] |
Remove |local_state_task_runner| from BrowserProcessImpl. The default JsonPrefStore task runner is used instead of injecting one. Remaining use cases didn't require sharing the task runner except one (to flush), but CommitPendingWrite()'s async reply API already provides this functionality and we use it in this CL instead of exposing the entire task runner (which is also more readable then implicitly depending on the impl flushing right away on its task runner). This is another take on hanxi's https://crrev.com/c/1153632 after debugging it locally I realized RundownTaskCounter needs to observe the notification synchronously (as the WaitableEvent prevents observing the reply). A nested Runloop is also not suitable (ref. https://crbug.com/318527 and in code comments). Note: JsonPrefStore's optional constructor params were flipped since the task runner is now the most likely optional parameter. This CL is a precursor to: https://crrev.com/c/1148959. R=sky@chromium.org Bug: 848615, 318527 Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;luci.chromium.try:linux_mojo;master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: I24c03cb2e49ec667e592d7a78722cdaf0884af36 Reviewed-on: https://chromium-review.googlesource.com/1163628 Commit-Queue: Gabriel Charette <gab@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#581343}
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 .