diff options
author | dhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-06 00:35:09 +0000 |
---|---|---|
committer | dhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-06 00:35:09 +0000 |
commit | d60677ca2916e3869a643b904f54b3b2c1f266cc (patch) | |
tree | d352191de550668fd38927f6f2fdb607369393c0 /chrome/browser/views/options/content_page_view.cc | |
parent | ebc1b688ec329581638e14253cc4fabb500a37a6 (diff) | |
download | chromium_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/browser/views/options/content_page_view.cc')
-rw-r--r-- | chrome/browser/views/options/content_page_view.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/views/options/content_page_view.cc b/chrome/browser/views/options/content_page_view.cc index 14bce89..a8f515c 100644 --- a/chrome/browser/views/options/content_page_view.cc +++ b/chrome/browser/views/options/content_page_view.cc @@ -118,7 +118,8 @@ void ContentPageView::ButtonPressed( } else { ShowAutoFillDialog(profile()->GetPersonalDataManager(), profile()->GetPersonalDataManager()->profiles(), - profile()->GetPersonalDataManager()->credit_cards()); + profile()->GetPersonalDataManager()->credit_cards(), + profile()); } } else if (sender == themes_reset_button_) { UserMetricsRecordAction("Options_ThemesReset", profile()->GetPrefs()); @@ -420,7 +421,8 @@ void ContentPageView::OnConfirmMessageAccept() { void ContentPageView::OnPersonalDataLoaded() { ShowAutoFillDialog(profile()->GetPersonalDataManager(), profile()->GetPersonalDataManager()->profiles(), - profile()->GetPersonalDataManager()->credit_cards()); + profile()->GetPersonalDataManager()->credit_cards(), + profile()); profile()->GetPersonalDataManager()->RemoveObserver(this); } |