Remove dependency of PrefSyncableService on Profile.
commited27d86b3de3a37060a8887475fd019bdb66bbd8
authorsdefresne <sdefresne@chromium.org>
Mon, 14 Sep 2015 11:02:38 +0000 (14 04:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 14 Sep 2015 11:03:25 +0000 (14 11:03 +0000)
treec4dbab6ba913880940c7f8a135c1eb76eeacae19
parent61d615b15b9028323ac69dbe549652d577d8f6cd
Remove dependency of PrefSyncableService on Profile.

In preparation of componentization of PrefSyncableService (with the goal
of sharing the code with iOS embedder), remove the dependency on Profile
by converting the two helper static method to free functions and moving
them to chrome/browser/prefs/pref_service_syncable_util.{cc,h} that will
stay in chrome/browser/prefs.

BUG=522536
TBR=thakis@chromium.org

Review URL: https://codereview.chromium.org/1326353002

Cr-Commit-Position: refs/heads/master@{#348600}
18 files changed:
chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc
chrome/browser/chromeos/first_run/first_run.cc
chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.cc
chrome/browser/chromeos/preferences.cc
chrome/browser/extensions/external_pref_loader.cc
chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc
chrome/browser/notifications/extension_welcome_notification.cc
chrome/browser/notifications/extension_welcome_notification_unittest.cc
chrome/browser/prefs/pref_metrics_service.cc
chrome/browser/prefs/pref_service_syncable.cc
chrome/browser/prefs/pref_service_syncable.h
chrome/browser/prefs/pref_service_syncable_util.cc [new file with mode: 0644]
chrome/browser/prefs/pref_service_syncable_util.h [new file with mode: 0644]
chrome/browser/prefs/synced_pref_change_registrar_browsertest.cc
chrome/browser/profiles/off_the_record_profile_impl.cc
chrome/browser/sync/chrome_sync_client.cc
chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
chrome/chrome_browser.gypi