Settings Virtual Prefs: Lazily create generated preferences
Previously all generated preferences were created along with the service. As the SettingsPrivateEventRouter is created along with the profile, all generated preferences and all services they may depend on are also created. Preferences are only actually required to exist when they are observed, which may never occur during the lifetime of the browser. e.g a user never opens settings. This CL moves the creation of all generated preferences to only occur when an attempt is made to interact with a generated preference. Bug: 1112454 Change-Id: I82a565fd4181be018b9714d8c7a18b85e6bb988d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2343076Reviewed-by:dpapad <dpapad@chromium.org> Reviewed-by:
Jan Wilken Dörrie <jdoerrie@chromium.org> Commit-Queue: Theodore Olsauskas-Warren <sauski@google.com> Cr-Commit-Position: refs/heads/master@{#800978}
Showing
Please register or sign in to comment