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

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

Issue 2607043002: [Autofill] Credit Card Autofill Last Used Date Experiment (Closed)
Patch Set: Fixed conflicts Created 3 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: 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 165862f6217518bff5f95af87b69482ab26cafff..ecf81758b0424384c2beff15a4157aea83d4aca4 100644
--- a/components/autofill/core/browser/personal_data_manager.h
+++ b/components/autofill/core/browser/personal_data_manager.h
@@ -220,6 +220,14 @@ class PersonalDataManager : public KeyedService,
const AutofillType& type,
const base::string16& field_contents);
+ // Returns the date when the credit card was last used in autofill. Shows
+ // expiration date if |show_expiration_date| is true, and shows time detail
+ // if |show_time_detail| is true.
+ base::string16 GetLastUsedDateForDisplay(
jungshik at Google 2017/01/26 19:29:14 Does this need to be public? Can it be just a stat
jiahuiguo 2017/01/27 09:31:05 Done.
+ const CreditCard* credit_card,
+ bool show_expiration_date,
+ bool show_time_detail) const;
+
// Re-loads profiles and credit cards from the WebDatabase asynchronously.
// In the general case, this is a no-op and will re-create the same
// in-memory model as existed prior to the call. If any change occurred to

Powered by Google App Engine
This is Rietveld 408576698