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

Unified Diff: components/autofill/core/browser/autofill_test_utils.cc

Issue 301343002: mac: Clean up autofill integration with Address Book. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autofill_cleanup2_base
Patch Set: Fix a cross-platform problem. Created 6 years, 7 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: components/autofill/core/browser/autofill_test_utils.cc
diff --git a/components/autofill/core/browser/autofill_test_utils.cc b/components/autofill/core/browser/autofill_test_utils.cc
index 081defa337a6781650b195de46a744b8207b6b3f..89077d80490e46d2249ee82ed041df90eddd691e 100644
--- a/components/autofill/core/browser/autofill_test_utils.cc
+++ b/components/autofill/core/browser/autofill_test_utils.cc
@@ -208,10 +208,12 @@ void DisableSystemServices(PrefService* prefs) {
OSCrypt::UseMockKeychain(true);
#endif
+#if defined(OS_MACOSX) && !defined(OS_IOS)
// Disable auxiliary profiles for unit testing. These reach out to system
// services on the Mac.
if (prefs)
- prefs->SetBoolean(prefs::kAutofillAuxiliaryProfilesEnabled, false);
+ prefs->SetBoolean(prefs::kAutofillUseMacAddressBook, false);
+#endif
Ilya Sherman 2014/06/03 23:48:59 nit: Please add the trailing comment.
erikchen 2014/06/04 01:51:26 Done.
}
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698