Index: chrome/browser/autofill/autofill_common_test.cc |
diff --git a/chrome/browser/autofill/autofill_common_test.cc b/chrome/browser/autofill/autofill_common_test.cc |
index 0d371e87452142f8b78803ba2371562af84eb929..581db88fe32d06204da1b31566bad0bb2fa2ba6b 100644 |
--- a/chrome/browser/autofill/autofill_common_test.cc |
+++ b/chrome/browser/autofill/autofill_common_test.cc |
@@ -12,6 +12,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/common/form_field_data.h" |
#include "chrome/common/pref_names.h" |
+#include "components/user_prefs/user_prefs.h" |
namespace autofill_test { |
@@ -83,7 +84,7 @@ void DisableSystemServices(Profile* profile) { |
// Disable auxiliary profiles for unit testing. These reach out to system |
// services on the Mac. |
if (profile) { |
- PrefServiceFromBrowserContext(profile)->SetBoolean( |
+ components::UserPrefs::Get(profile)->SetBoolean( |
prefs::kAutofillAuxiliaryProfilesEnabled, false); |
} |
} |