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

Unified Diff: components/payments/core/autofill_payment_instrument.h

Issue 2913223002: Make payment instrument labels dynamic (Closed)
Patch Set: Created 3 years, 7 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/payments/core/autofill_payment_instrument.h
diff --git a/components/payments/core/autofill_payment_instrument.h b/components/payments/core/autofill_payment_instrument.h
index 1125a35ac1842d59391f8006d31eaaf3c628986b..6df075f621a6b72b7997b5b5459b4463d81881a0 100644
--- a/components/payments/core/autofill_payment_instrument.h
+++ b/components/payments/core/autofill_payment_instrument.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/strings/string16.h"
#include "components/autofill/core/browser/autofill_profile.h"
#include "components/autofill/core/browser/credit_card.h"
#include "components/autofill/core/browser/payments/full_card_request.h"
@@ -43,6 +44,8 @@ class AutofillPaymentInstrument
base::string16 GetMissingInfoLabel() override;
bool IsValidForCanMakePayment() override;
void RecordUse() override;
+ base::string16 GetLabel() const override;
+ base::string16 GetSublabel() const override;
// autofill::payments::FullCardRequest::ResultDelegate:
void OnFullCardRequestSucceeded(const autofill::CreditCard& card,

Powered by Google App Engine
This is Rietveld 408576698