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

Unified Diff: components/autofill/content/browser/wallet/instrument.cc

Issue 772253003: Create an autofill Suggestion class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years 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 | « components/autofill.gypi ('k') | components/autofill/content/browser/wallet/wallet_items.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/browser/wallet/instrument.cc
diff --git a/components/autofill/content/browser/wallet/instrument.cc b/components/autofill/content/browser/wallet/instrument.cc
index d50bc453638147e40999d6cab07cda1ee188308d..c7fa3b56725e2b30ef7279a9589bae00dab46bdf 100644
--- a/components/autofill/content/browser/wallet/instrument.cc
+++ b/components/autofill/content/browser/wallet/instrument.cc
@@ -12,6 +12,7 @@
#include "components/autofill/content/browser/wallet/wallet_address.h"
#include "components/autofill/core/browser/autofill_country.h"
#include "components/autofill/core/browser/autofill_profile.h"
+#include "components/autofill/core/browser/autofill_sync_constants.h"
#include "components/autofill/core/browser/credit_card.h"
#include "components/autofill/core/browser/validation.h"
@@ -38,17 +39,17 @@ Instrument::FormOfPayment FormOfPaymentFromCardType(const std::string& type) {
std::string FormOfPaymentToString(Instrument::FormOfPayment form_of_payment) {
switch (form_of_payment) {
case Instrument::UNKNOWN:
- return "UNKNOWN";
+ return kSyncCardTypeUnknown;
case Instrument::VISA:
- return "VISA";
+ return kSyncCardTypeVisa;
case Instrument::MASTER_CARD:
- return "MASTER_CARD";
+ return kSyncCardTypeMasterCard;
case Instrument::AMEX:
- return "AMEX";
+ return kSyncCardTypeAmex;
case Instrument::DISCOVER:
- return "DISCOVER";
+ return kSyncCardTypeDiscover;
case Instrument::JCB:
- return "JCB";
+ return kSyncCardTypeJCB;
}
NOTREACHED();
return "NOT_POSSIBLE";
« no previous file with comments | « components/autofill.gypi ('k') | components/autofill/content/browser/wallet/wallet_items.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698