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

Unified Diff: chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc

Issue 2844463004: Rename card 'type' into 'issuer network.' (Closed)
Patch Set: read -> use 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc b/chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc
index 1071cc242ad79058c45cfb7df4aef06441285e55..34ac91b7ed76d13f2317f8a8723083326db4a899 100644
--- a/chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc
+++ b/chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/views/payments/cvc_unmask_view_controller.h"
+#include <memory>
+
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/autofill/risk_util.h"
#include "chrome/browser/profiles/profile.h"
@@ -114,7 +116,7 @@ void CvcUnmaskViewController::OnUnmaskVerificationResult(
base::string16 CvcUnmaskViewController::GetSheetTitle() {
return l10n_util::GetStringFUTF16(IDS_AUTOFILL_CARD_UNMASK_PROMPT_TITLE,
- credit_card_.TypeAndLastFourDigits());
+ credit_card_.NetworkAndLastFourDigits());
}
void CvcUnmaskViewController::FillContentView(views::View* content_view) {
@@ -153,10 +155,10 @@ void CvcUnmaskViewController::FillContentView(views::View* content_view) {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
// TODO(anthonyvd): Consider using
// CardUnmaskPromptControllerImpl::GetCvcImageRid.
- cvc_image->SetImage(
- rb.GetImageSkiaNamed(credit_card_.type() == autofill::kAmericanExpressCard
- ? IDR_CREDIT_CARD_CVC_HINT_AMEX
- : IDR_CREDIT_CARD_CVC_HINT));
+ cvc_image->SetImage(rb.GetImageSkiaNamed(
+ credit_card_.network() == autofill::kAmericanExpressCard
+ ? IDR_CREDIT_CARD_CVC_HINT_AMEX
+ : IDR_CREDIT_CARD_CVC_HINT));
layout->AddView(cvc_image.release());
std::unique_ptr<views::Textfield> cvc_field =
« no previous file with comments | « chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc ('k') | components/autofill/core/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698