Chromium Code Reviews| Index: chrome/browser/ui/webui/options/autofill_options_handler.cc |
| diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.cc b/chrome/browser/ui/webui/options/autofill_options_handler.cc |
| index 9f7db4a3307f82f54fcf9c432b4f8f5e6f37c706..9013b309de64ae928cd8362b53f5d5c349aef937 100644 |
| --- a/chrome/browser/ui/webui/options/autofill_options_handler.cc |
| +++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc |
| @@ -460,13 +460,8 @@ void AutofillOptionsHandler::LoadAutofillData() { |
| web_ui()->CallJavascriptFunction("AutofillOptions.setAddressList", addresses); |
| base::ListValue credit_cards; |
| - const std::vector<CreditCard*>& cards = personal_data_->GetCreditCards(); |
| - for (std::vector<CreditCard*>::const_iterator iter = cards.begin(); |
| - iter != cards.end(); ++iter) { |
| - const CreditCard* card = *iter; |
| - if (card->record_type() != CreditCard::LOCAL_CARD) |
| - continue; |
| - |
| + const std::vector<CreditCard*>& cards = personal_data_->GetLocalCreditCards(); |
|
aurimas (slooooooooow)
2015/01/13 01:05:14
Android does not use webui. CL description says th
Evan Stade
2015/01/13 01:12:52
adding the GetLocalCreditCards function allows thi
|
| + for (const CreditCard* card : cards.begin()) { |
| // TODO(estade): this should be a dictionary. |
| base::ListValue* entry = new base::ListValue(); |
| entry->Append(new base::StringValue(card->guid())); |