commit | 788eaf69b6f5c5bdc284bd4f03b0ef5573498d71 | [log] [tgz] |
---|---|---|
author | Gabriel Charette <gab@chromium.org> | Tue Aug 07 20:11:46 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Aug 07 20:11:46 2018 |
tree | e522e187f500edc5873a1e208690eebb30b121a2 | |
parent | 920d2d6b702a22d77fce0a1782d207dc0c03719a [diff] |
[PrefService] Introduce a synchronous option to CommitPendingWrite() This is required to remove the |local_state_task_runner| member of BrowserProcessImpl only used to implicitly wait on pref store. Ref. https://crrev.com/c/1163628. Synchronous callback semantics are required on EndSession() as a nested RunLoop is not suitable to observe a reply. https://chromium-review.googlesource.com/c/chromium/src/+/1163628/8/chrome/browser/browser_process_impl.cc#594 Also implemented in services/preferences' SegregatedPrefStore but not in the Mojom interface where I don't think it's used yet? Or if it is then it was already wrong as |local_state_task_runner| is decoupled from that Mojom. The DCHECK will tell and make this future proof. Bug: 848615 Cq-Include-Trybots: luci.chromium.try:linux_mojo;master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: Ie72f2d30d30bfa7f96a04d780d1591949a173b78 Reviewed-on: https://chromium-review.googlesource.com/1164522 Reviewed-by: Jonathan Ross <jonross@chromium.org> Reviewed-by: Bernhard Bauer <bauerb@chromium.org> Commit-Queue: Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#581324}
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 .