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

Side by Side Diff: components/autofill/core/browser/credit_card.cc

Issue 2831213002: Add unionpay resource for autofill. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/core/browser/credit_card.h" 5 #include "components/autofill/core/browser/credit_card.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 return IDR_AUTOFILL_CC_DINERS; 145 return IDR_AUTOFILL_CC_DINERS;
146 if (type == kDiscoverCard) 146 if (type == kDiscoverCard)
147 return IDR_AUTOFILL_CC_DISCOVER; 147 return IDR_AUTOFILL_CC_DISCOVER;
148 if (type == kJCBCard) 148 if (type == kJCBCard)
149 return IDR_AUTOFILL_CC_JCB; 149 return IDR_AUTOFILL_CC_JCB;
150 if (type == kMasterCard) 150 if (type == kMasterCard)
151 return IDR_AUTOFILL_CC_MASTERCARD; 151 return IDR_AUTOFILL_CC_MASTERCARD;
152 if (type == kMirCard) 152 if (type == kMirCard)
153 return IDR_AUTOFILL_CC_MIR; 153 return IDR_AUTOFILL_CC_MIR;
154 if (type == kUnionPay) 154 if (type == kUnionPay)
155 return IDR_AUTOFILL_CC_GENERIC; 155 return IDR_AUTOFILL_CC_UNIONPAY;
156 if (type == kVisaCard) 156 if (type == kVisaCard)
157 return IDR_AUTOFILL_CC_VISA; 157 return IDR_AUTOFILL_CC_VISA;
158 158
159 // If you hit this DCHECK, the above list of cases needs to be updated to 159 // If you hit this DCHECK, the above list of cases needs to be updated to
160 // include a new card. 160 // include a new card.
161 DCHECK_EQ(kGenericCard, type); 161 DCHECK_EQ(kGenericCard, type);
162 return IDR_AUTOFILL_CC_GENERIC; 162 return IDR_AUTOFILL_CC_GENERIC;
163 } 163 }
164 164
165 // static 165 // static
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 const char kDinersCard[] = "dinersCC"; 929 const char kDinersCard[] = "dinersCC";
930 const char kDiscoverCard[] = "discoverCC"; 930 const char kDiscoverCard[] = "discoverCC";
931 const char kGenericCard[] = "genericCC"; 931 const char kGenericCard[] = "genericCC";
932 const char kJCBCard[] = "jcbCC"; 932 const char kJCBCard[] = "jcbCC";
933 const char kMasterCard[] = "masterCardCC"; 933 const char kMasterCard[] = "masterCardCC";
934 const char kMirCard[] = "mirCC"; 934 const char kMirCard[] = "mirCC";
935 const char kUnionPay[] = "unionPayCC"; 935 const char kUnionPay[] = "unionPayCC";
936 const char kVisaCard[] = "visaCC"; 936 const char kVisaCard[] = "visaCC";
937 937
938 } // namespace autofill 938 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_layout_model.cc ('k') | components/autofill/core/browser/credit_card_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698