Index: chrome/browser/prefs/pref_metrics_service.cc |
diff --git a/chrome/browser/prefs/pref_metrics_service.cc b/chrome/browser/prefs/pref_metrics_service.cc |
index a3d211769f7e695c1641befdfc8608e5709b9b81..1caea5461efe6394d06a727200860a0c43c388a1 100644 |
--- a/chrome/browser/prefs/pref_metrics_service.cc |
+++ b/chrome/browser/prefs/pref_metrics_service.cc |
@@ -12,6 +12,7 @@ |
#include "base/strings/string_number_conversions.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/prefs/pref_service_syncable.h" |
+#include "chrome/browser/prefs/pref_service_syncable_util.h" |
#include "chrome/browser/prefs/session_startup_pref.h" |
#include "chrome/browser/prefs/synced_pref_change_registrar.h" |
#include "chrome/browser/profiles/incognito_helpers.h" |
@@ -54,7 +55,7 @@ PrefMetricsService::PrefMetricsService(Profile* profile) |
weak_factory_(this) { |
RecordLaunchPrefs(); |
- PrefServiceSyncable* prefs = PrefServiceSyncable::FromProfile(profile_); |
+ PrefServiceSyncable* prefs = PrefServiceSyncableFromProfile(profile_); |
synced_pref_change_registrar_.reset(new SyncedPrefChangeRegistrar(prefs)); |
RegisterSyncedPrefObservers(); |
@@ -176,7 +177,7 @@ void PrefMetricsService::OnPrefChanged( |
const LogHistogramValueCallback& callback, |
const std::string& path, |
bool from_sync) { |
- PrefServiceSyncable* prefs = PrefServiceSyncable::FromProfile(profile_); |
+ PrefServiceSyncable* prefs = PrefServiceSyncableFromProfile(profile_); |
const PrefService::Preference* pref = prefs->FindPreference(path.c_str()); |
DCHECK(pref); |
std::string source_name( |