Allowing PrefService to add new PrefStores
When only running the service manager, a simple PrefService containing user PrefStore and commandline PrefStore can be created before BrowserProcessImpl. And it will be passed to the BrowserProcessImpl to create the local_state. The implementation has already landed here: https://chromium-review.googlesource.com/c/chromium/src/+/1148959 This CL makes it possible to migrate the simple PrefService to local state by adding new pref stores, rather than creating the latter from scratch. The benefit of doing this is that existing listeners to the simple PrefService won't need to handle the case of swapping PrefServices, re-registering PrefChangeRegistrar and default values, and verifying no pref value changes during the swap. Bug: 866028 Change-Id: I35b643d27ffabd9621f21f68a3261aa3482ca173 Reviewed-on: https://chromium-review.googlesource.com/1199944 Commit-Queue: Min Qin <qinmin@chromium.org> Reviewed-by:Gabriel Charette <gab@chromium.org> Reviewed-by:
Bernhard Bauer <bauerb@chromium.org> Cr-Commit-Position: refs/heads/master@{#591469}
Showing
Please register or sign in to comment