summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-13 20:38:57 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-13 20:38:57 +0000
commitc47c9d80e93941924c8d6c5e4d7845971552b390 (patch)
treeba148e054621c580be7c6ca48c217de344f5eb04 /chrome/browser/views
parent4cd978f396db700a1fb3e2d6e081e76817264c9b (diff)
downloadchromium_src-c47c9d80e93941924c8d6c5e4d7845971552b390.zip
chromium_src-c47c9d80e93941924c8d6c5e4d7845971552b390.tar.gz
chromium_src-c47c9d80e93941924c8d6c5e4d7845971552b390.tar.bz2
DOMUI: Implement adding and editing credit cards in the AutoFill page.
BUG=49094 TEST=none Review URL: http://codereview.chromium.org/3308006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/autofill_profiles_view_win.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/views/autofill_profiles_view_win.cc b/chrome/browser/views/autofill_profiles_view_win.cc
index 530a7a2..ab70dd9 100644
--- a/chrome/browser/views/autofill_profiles_view_win.cc
+++ b/chrome/browser/views/autofill_profiles_view_win.cc
@@ -961,9 +961,8 @@ void AutoFillProfilesView::EditableSetViewContents::ItemChanged(
NOTREACHED();
} else {
DCHECK(new_index < static_cast<int>(observer_->profiles_set_.size()));
- temporary_info_.credit_card.set_billing_address(
- base::IntToString16(
- observer_->profiles_set_[new_index].address.unique_id()));
+ temporary_info_.credit_card.set_billing_address_id(
+ observer_->profiles_set_[new_index].address.unique_id());
}
} else if (combo_box == combo_box_month_) {
if (new_index == -1) {
@@ -1133,9 +1132,8 @@ void AutoFillProfilesView::EditableSetViewContents::InitCreditCardFields(
// Address combo boxes.
combo_box_billing_ = new views::Combobox(billing_model_);
combo_box_billing_->set_listener(this);
- int billing_id = -1;
- if (base::StringToInt(WideToUTF16Hack(
- temporary_info_.credit_card.billing_address()), &billing_id))
+ int billing_id = temporary_info_.credit_card.billing_address_id();
+ if (billing_id)
combo_box_billing_->SetSelectedItem(billing_model_->GetIndex(billing_id));
billing_model_->UsedWithComboBox(combo_box_billing_);