summaryrefslogtreecommitdiffstats
path: root/chrome/common/pref_names.cc
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-06 00:35:09 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-06 00:35:09 +0000
commitd60677ca2916e3869a643b904f54b3b2c1f266cc (patch)
treed352191de550668fd38927f6f2fdb607369393c0 /chrome/common/pref_names.cc
parentebc1b688ec329581638e14253cc4fabb500a37a6 (diff)
downloadchromium_src-d60677ca2916e3869a643b904f54b3b2c1f266cc.zip
chromium_src-d60677ca2916e3869a643b904f54b3b2c1f266cc.tar.gz
chromium_src-d60677ca2916e3869a643b904f54b3b2c1f266cc.tar.bz2
AutoFill Mac preference for enabling Address Book "me" card usage.
Adds a boolean preference to specify whether to use the Mac user's Address Book "me" card as a source of information for AutoFill addresses. This CL adds the Mac UI and the preference setup only. It does not cover the functionality for fetching the actual Address Book data. The changes to AutoFillDialog.xib add the checkbox UI and bind the checkbox to the |auxiliaryEnabled| property in the controller class. The |addressSection_| outlet is set to the spacer following the new checkbox. Unit tests are included for the addition of the preference at the mac dialog controller level. BUG=36496 TEST=PersonalDataManagerTest, AutoFillDialogControllerTest Review URL: http://codereview.chromium.org/668171 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/pref_names.cc')
-rw-r--r--chrome/common/pref_names.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index 4037af9..97b03c3 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -327,6 +327,11 @@ const wchar_t kAutoFillInfoBarShown[] = L"autofill.infobar_shown";
// Boolean that is true if autofill is enabled and allowed to save profile data.
const wchar_t kAutoFillEnabled[] = L"autofill.enabled";
+// Boolean that is true when auxiliary autofill profiles are enabled.
+// Currently applies to Address Book "me" card on Mac. False on Win and Linux.
+const wchar_t kAutoFillAuxiliaryProfilesEnabled[] =
+ L"autofill.auxiliary_profiles_enabled";
+
// Position and size of the autofill dialog.
const wchar_t kAutoFillDialogPlacement[] = L"autofill.dialog_placement";