Pref service: add support for tracked prefs.
This:
- Adds TrackedPersistentPrefStoreConfiguration: a mojo struct containing
the necessary state for constructing a PrefStore identical to the one
constructed in ProfilePrefStoreManager::CreateProfilePrefStore().
- Moves the enums used to configure tracked prefs into the mojom.
- Extracts the creation of tracked pref store from
ProfilePrefStoreManager::CreateProfilePrefStore() into
prefs::CreateTrackedPersistentPrefStore().
- Changes prefs::CreatePersistentPrefStore() so an appropriate
configuration results in prefs::CreateTrackedPersistentPrefStore()
being called to create the backing PrefStore.
BUG=654988
Review-Url: https://codereview.chromium.org/2745563005
Cr-Commit-Position: refs/heads/master@{#462301}
22 files changed