| Index: components/autofill/core/browser/autofill_manager_unittest.cc
|
| diff --git a/components/autofill/core/browser/autofill_manager_unittest.cc b/components/autofill/core/browser/autofill_manager_unittest.cc
|
| index 731e58ad53ed8c7472da71619b889956475a6688..a8d3573aa104b13c257d1edb71c4539152170594 100644
|
| --- a/components/autofill/core/browser/autofill_manager_unittest.cc
|
| +++ b/components/autofill/core/browser/autofill_manager_unittest.cc
|
| @@ -1551,8 +1551,14 @@ TEST_F(AutofillManagerTest, FillAddressForm) {
|
| // Test that we correctly fill an address form from an auxiliary profile.
|
| TEST_F(AutofillManagerTest, FillAddressFormFromAuxiliaryProfile) {
|
| personal_data_.ClearAutofillProfiles();
|
| +#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| + autofill_client_.GetPrefs()->SetBoolean(
|
| + ::autofill::prefs::kAutofillUseMacAddressBook, true);
|
| +#else
|
| autofill_client_.GetPrefs()->SetBoolean(
|
| ::autofill::prefs::kAutofillAuxiliaryProfilesEnabled, true);
|
| +#endif // defined(OS_MACOSX) && !defined(OS_IOS)
|
| +
|
| personal_data_.CreateTestAuxiliaryProfiles();
|
|
|
| // Set up our form data.
|
| @@ -2474,12 +2480,12 @@ TEST_F(AutofillManagerTest, AuxiliaryProfilesReset) {
|
| PrefService* prefs = autofill_client_.GetPrefs();
|
| #if defined(OS_MACOSX) || defined(OS_ANDROID)
|
| // Auxiliary profiles is implemented on Mac and Android only.
|
| - // OSX: enables Mac Address Book integration.
|
| + // OSX: This preference exists for legacy reasons. It is no longer used.
|
| // Android: enables integration with user's contact profile.
|
| ASSERT_TRUE(
|
| prefs->GetBoolean(::autofill::prefs::kAutofillAuxiliaryProfilesEnabled));
|
| - prefs->SetBoolean(
|
| - ::autofill::prefs::kAutofillAuxiliaryProfilesEnabled, false);
|
| + prefs->SetBoolean(::autofill::prefs::kAutofillAuxiliaryProfilesEnabled,
|
| + false);
|
| prefs->ClearPref(::autofill::prefs::kAutofillAuxiliaryProfilesEnabled);
|
| ASSERT_TRUE(
|
| prefs->GetBoolean(::autofill::prefs::kAutofillAuxiliaryProfilesEnabled));
|
| @@ -2490,7 +2496,7 @@ TEST_F(AutofillManagerTest, AuxiliaryProfilesReset) {
|
| prefs->ClearPref(::autofill::prefs::kAutofillAuxiliaryProfilesEnabled);
|
| ASSERT_FALSE(
|
| prefs->GetBoolean(::autofill::prefs::kAutofillAuxiliaryProfilesEnabled));
|
| -#endif
|
| +#endif // defined(OS_MACOSX) || defined(OS_ANDROID)
|
| }
|
|
|
| TEST_F(AutofillManagerTest, DeterminePossibleFieldTypesForUpload) {
|
|
|