components/google: Add a helper function for registering profile prefs.
This moves the RegisterProfilePrefs() from GoogleURLTrackerFactory (chrome)
into GoogleURLTracker (components/google) and make
GoogleURLTrackerFactory::RegisterProfilePrefs() just call that function.
iOS cannot use GoogleURLTrackerFactory and will have to re-implement the factory to be a
BrowserStateKeyedServiceFactory instead of a BrowserContextKeyedServiceFactory.
By moving the pref registration to a static method, the code can be shared by both
implementations eventually and avoid code duplication.
BUG=373218
[email protected],[email protected]
[email protected]
Review URL: https://codereview.chromium.org/1167603002
Cr-Commit-Position: refs/heads/master@{#332923}
9 files changed