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..358e038f4de757fbea7c8117b39491125465fefb 100644 |
--- a/components/autofill/core/browser/autofill_test_utils.cc |
+++ b/components/autofill/core/browser/autofill_test_utils.cc |
@@ -206,12 +206,14 @@ void DisableSystemServices(PrefService* prefs) { |
// Use a mock Keychain rather than the OS one to store credit card data. |
#if defined(OS_MACOSX) |
OSCrypt::UseMockKeychain(true); |
-#endif |
+#endif // defined(OS_MACOSX) |
+#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 // defined(OS_MACOSX) && !defined(OS_IOS) |
} |
} // namespace test |