Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(887)

Unified Diff: chrome/browser/autofill/autofill_common_test.cc

Issue 12340111: Introduce //components/user_prefs, use to eliminate c/b/prefs dependency in Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge of LKGR Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}

Powered by Google App Engine
This is Rietveld 408576698