Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3357)

Unified Diff: chrome/browser/ui/webui/options/autofill_options_handler.cc

Issue 845173003: Autofill - don't show server cards in android preferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d567f8b6020fce83bc5ea393587aefd10b8fe3c4 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();
+ for (const CreditCard* card : cards) {
// TODO(estade): this should be a dictionary.
base::ListValue* entry = new base::ListValue();
entry->Append(new base::StringValue(card->guid()));

Powered by Google App Engine
This is Rietveld 408576698