Index: chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc |
diff --git a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc |
index e5903371ffb1a764088ddefcee7fa7be0da02178..96f1d1efcdf9fbc5cdd72ecb36e213624b7be7b1 100644 |
--- a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc |
+++ b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc |
@@ -75,8 +75,9 @@ class CardUnmaskPromptViews : public CardUnmaskPromptView, |
void GotVerificationResult(const base::string16& error_message, |
bool allow_retry) override { |
- if (!error_message.empty()) { |
Evan Stade
2015/03/09 18:06:56
this is a bug --- it was debugging code that slipp
|
- progress_label_->SetText(base::ASCIIToUTF16("Success!")); |
+ if (error_message.empty()) { |
+ progress_label_->SetText(l10n_util::GetStringUTF16( |
+ IDS_AUTOFILL_CARD_UNMASK_VERIFICATION_SUCCESS)); |
base::MessageLoop::current()->PostDelayedTask( |
FROM_HERE, base::Bind(&CardUnmaskPromptViews::ClosePrompt, |
base::Unretained(this)), |
@@ -172,9 +173,8 @@ class CardUnmaskPromptViews : public CardUnmaskPromptView, |
} |
base::string16 GetDialogButtonLabel(ui::DialogButton button) const override { |
- // TODO(estade): fix this. |
if (button == ui::DIALOG_BUTTON_OK) |
- return base::ASCIIToUTF16("Verify"); |
+ return l10n_util::GetStringUTF16(IDS_AUTOFILL_CARD_UNMASK_CONFIRM_BUTTON); |
return DialogDelegateView::GetDialogButtonLabel(button); |
} |
@@ -300,7 +300,8 @@ class CardUnmaskPromptViews : public CardUnmaskPromptView, |
progress_overlay_->SetVisible(false); |
AddChildView(progress_overlay_); |
- progress_label_ = new views::Label(base::ASCIIToUTF16("Verifying...")); |
+ progress_label_ = new views::Label(l10n_util::GetStringUTF16( |
+ IDS_AUTOFILL_CARD_UNMASK_VERIFICATION_IN_PROGRESS)); |
progress_overlay_->AddChildView(progress_label_); |
} |