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

Side by Side Diff: components/autofill/core/common/autofill_pref_names.cc

Issue 578383002: mac: Only show the access Address Book prompt a fixed number of times. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autofill-contacts
Patch Set: Comments from isherman, round 2. Created 6 years, 3 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 unified diff | Download patch
OLDNEW
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. This pref 10 // Boolean that is true when auxiliary Autofill profiles are enabled. This pref
11 // is only relevant to Android. 11 // is only relevant to Android.
12 const char kAutofillAuxiliaryProfilesEnabled[] = 12 const char kAutofillAuxiliaryProfilesEnabled[] =
13 "autofill.auxiliary_profiles_enabled"; 13 "autofill.auxiliary_profiles_enabled";
14 14
15 // Boolean that is true if Autofill is enabled and allowed to save profile data. 15 // Boolean that is true if Autofill is enabled and allowed to save profile data.
16 const char kAutofillEnabled[] = "autofill.enabled"; 16 const char kAutofillEnabled[] = "autofill.enabled";
17 17
18 // Boolean that is true when Chrome has attempted to access the user's Address 18 // Boolean that is true when Chrome has attempted to access the user's Address
19 // Book on Mac. This preference is important since the first time Chrome 19 // Book on Mac. This preference is important since the first time Chrome
20 // attempts to access the user's Address Book, Cocoa presents a blocking dialog 20 // attempts to access the user's Address Book, Cocoa presents a blocking dialog
21 // to the user. 21 // to the user.
22 const char kAutofillMacAddressBookQueried[] = 22 const char kAutofillMacAddressBookQueried[] =
23 "autofill.auxiliary_profiles_queried"; 23 "autofill.auxiliary_profiles_queried";
24 24
25 // The number of times that the access Address Book prompt has been shown. It
26 // will only show for a fixed number of instances, and then it will stop
27 // showing.
28 const char kAutofillMacAddressBookShowedCount[] =
29 "autofill.mac_address_book_prompt_showed_count";
30
25 // Double that indicates negative (for not matched forms) upload rate. 31 // Double that indicates negative (for not matched forms) upload rate.
26 const char kAutofillNegativeUploadRate[] = "autofill.negative_upload_rate"; 32 const char kAutofillNegativeUploadRate[] = "autofill.negative_upload_rate";
27 33
28 // Double that indicates positive (for matched forms) upload rate. 34 // Double that indicates positive (for matched forms) upload rate.
29 const char kAutofillPositiveUploadRate[] = "autofill.positive_upload_rate"; 35 const char kAutofillPositiveUploadRate[] = "autofill.positive_upload_rate";
30 36
31 // Whether Autofill should try to use the Mac Address Book. If this value is 37 // Whether Autofill should try to use the Mac Address Book. If this value is
32 // true, then kAutofillMacAddressBookQueried is expected to also be true. 38 // true, then kAutofillMacAddressBookQueried is expected to also be true.
33 const char kAutofillUseMacAddressBook[] = "autofill.use_mac_address_book"; 39 const char kAutofillUseMacAddressBook[] = "autofill.use_mac_address_book";
34 40
35 } // namespace prefs 41 } // namespace prefs
36 } // namespace autofill 42 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/common/autofill_pref_names.h ('k') | components/autofill/core/common/form_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698