| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/autofill/core/common/autofill_pref_names.h" | 5 #include "components/autofill/core/common/autofill_pref_names.h" |
| 6 | 6 |
| 7 namespace autofill { | 7 namespace autofill { |
| 8 namespace prefs { | 8 namespace prefs { |
| 9 | 9 |
| 10 // Boolean that is true when auxiliary Autofill profiles are enabled. | 10 // Boolean that is true when auxiliary Autofill profiles are enabled. This pref |
| 11 // Currently applies to Address Book "me" card on Mac. False on Win and Linux. | 11 // is only relevant to Android. |
| 12 const char kAutofillAuxiliaryProfilesEnabled[] = | 12 const char kAutofillAndroidAuxiliaryProfilesEnabled[] = |
| 13 "autofill.auxiliary_profiles_enabled"; | 13 "autofill.auxiliary_profiles_enabled"; |
| 14 | 14 |
| 15 // Boolean that is true when at least one read request for auxiliary Autofill | 15 // Boolean that is true when Chrome has attempted to access the user's Address |
| 16 // profiles has been issued. Currently applies only to auxiliary profiles on | 16 // Book on mac. This preference is important since the first time Chrome |
| 17 // Mac. | 17 // attempts to access the user's Address Book, Cocoa presents a blocking dialog |
| 18 const char kAutofillAuxiliaryProfilesQueried[] = | 18 // to the user. |
| 19 const char kAutofillMacAddressBookQueried[] = |
| 19 "autofill.auxiliary_profiles_queried"; | 20 "autofill.auxiliary_profiles_queried"; |
| 20 | 21 |
| 21 // Boolean that is true if Autofill is enabled and allowed to save profile data. | 22 // Boolean that is true if Autofill is enabled and allowed to save profile data. |
| 22 const char kAutofillEnabled[] = "autofill.enabled"; | 23 const char kAutofillEnabled[] = "autofill.enabled"; |
| 23 | 24 |
| 24 // Double that indicates negative (for not matched forms) upload rate. | 25 // Double that indicates negative (for not matched forms) upload rate. |
| 25 const char kAutofillNegativeUploadRate[] = "autofill.negative_upload_rate"; | 26 const char kAutofillNegativeUploadRate[] = "autofill.negative_upload_rate"; |
| 26 | 27 |
| 27 // Double that indicates positive (for matched forms) upload rate. | 28 // Double that indicates positive (for matched forms) upload rate. |
| 28 const char kAutofillPositiveUploadRate[] = "autofill.positive_upload_rate"; | 29 const char kAutofillPositiveUploadRate[] = "autofill.positive_upload_rate"; |
| 29 | 30 |
| 31 // Whether Autofill should try to use the Mac Address Book. If this value is |
| 32 // true, then kAutofillMacAddressBookQueried is expected to also be true. |
| 33 const char kAutofillUseMacAddressBook[] = "autofill.use_mac_address_book"; |
| 34 |
| 35 // Whether the migration from kAutofillAndroidAuxiliaryProfilesEnabled to |
| 36 // kAutofillUseMacAddressBook has been performed. The old preference was |
| 37 // synced, and the new preference is not synced. The migration is not synced, |
| 38 // and needs to be performed once on each installed instance of Chrome. |
| 39 const char kAutofillHasMigratedUseMacAddressBookPref[] = |
| 40 "autofill.use_mac_address_book_migration"; |
| 41 |
| 30 } // namespace prefs | 42 } // namespace prefs |
| 31 } // namespace autofill | 43 } // namespace autofill |
| OLD | NEW |