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

Unified Diff: components/autofill/core/browser/personal_data_manager.h

Issue 1867523003: [Autofill] Suggest expired credit cards last. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
« no previous file with comments | « no previous file | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/personal_data_manager.h
diff --git a/components/autofill/core/browser/personal_data_manager.h b/components/autofill/core/browser/personal_data_manager.h
index 73201933cb320a6f36bcc8321258b564b103ceef..d1fb48caa2777f36246982aced87d4ac05b8b7ca 100644
--- a/components/autofill/core/browser/personal_data_manager.h
+++ b/components/autofill/core/browser/personal_data_manager.h
@@ -390,19 +390,12 @@ class PersonalDataManager : public KeyedService,
const std::vector<AutofillProfile*>& GetProfiles(
bool record_metrics) const;
- // Fills |cards_to_suggest| with valid credit cards to suggest based on the
- // |type| and |field_contents| of the credit card field. The cards are ordered
- // by frecency.
- void GetOrderedCardsToSuggest(
+ // Returns credit card suggestions based on the |cards_to_suggest| and the
+ // |type| and |field_contents| of the credit card field.
+ std::vector<Suggestion> GetSuggestionsForCards(
const AutofillType& type,
const base::string16& field_contents,
- std::list<const CreditCard*>* cards_to_suggest) const;
-
- // Returns the suggestions to display for the |cards_to_suggest| based on the
- // |type| of the credit card field.
- std::vector<Suggestion> GetSuggestionsForCards(
- const std::list<const CreditCard*>& cards_to_suggest,
- const AutofillType& type) const;
+ const std::list<const CreditCard*>& cards_to_suggest) const;
const std::string app_locale_;
« no previous file with comments | « no previous file | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698