| 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 55bf14171c708461f69b43511473824353859b3f..5393319f97c5897cbebabbb46e76238a30f81848 100644
|
| --- a/chrome/browser/ui/webui/options/autofill_options_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc
|
| @@ -391,10 +391,10 @@ void AutofillOptionsHandler::LoadAutofillData() {
|
| web_ui()->CallJavascriptFunction("AutofillOptions.setAddressList", addresses);
|
|
|
| ListValue credit_cards;
|
| - for (std::vector<CreditCard*>::const_iterator i =
|
| - personal_data_->credit_cards().begin();
|
| - i != personal_data_->credit_cards().end(); ++i) {
|
| - const CreditCard* card = *i;
|
| + 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;
|
| // TODO(estade): this should be a dictionary.
|
| ListValue* entry = new ListValue();
|
| entry->Append(new StringValue(card->guid()));
|
|
|