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

Unified Diff: chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc

Issue 1141983002: Autofill - Also update instructions message when "New link?" is clicked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/browser/ui/views/autofill/card_unmask_prompt_views.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0952195da30e5eb6241d865fa7f5b57d9908bd0a..6f4f2eb83f4bb6af25c2872374d98b7fc1d8868e 100644
--- a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
+++ b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
@@ -53,6 +53,7 @@ CardUnmaskPromptViews::CardUnmaskPromptViews(
CardUnmaskPromptController* controller)
: controller_(controller),
main_contents_(nullptr),
+ instructions_(nullptr),
permanent_error_label_(nullptr),
input_row_(nullptr),
cvc_input_(nullptr),
@@ -153,6 +154,7 @@ void CardUnmaskPromptViews::LinkClicked(views::Link* source, int event_flags) {
cvc_input_->SetText(base::string16());
GetDialogClientView()->UpdateDialogButtons();
GetWidget()->UpdateWindowTitle();
+ instructions_->SetText(controller_->GetInstructionsMessage());
SetRetriableErrorMessage(base::string16());
}
@@ -398,13 +400,12 @@ void CardUnmaskPromptViews::InitIfNecessary() {
new views::BoxLayout(views::BoxLayout::kVertical, kEdgePadding, 0, 0));
main_contents_->AddChildView(controls_container);
- views::Label* instructions =
- new views::Label(controller_->GetInstructionsMessage());
- instructions->SetEnabledColor(kGreyTextColor);
- instructions->SetMultiLine(true);
- instructions->SetHorizontalAlignment(gfx::ALIGN_LEFT);
- instructions->SetBorder(views::Border::CreateEmptyBorder(0, 0, 16, 0));
- controls_container->AddChildView(instructions);
+ instructions_ = new views::Label(controller_->GetInstructionsMessage());
+ instructions_->SetEnabledColor(kGreyTextColor);
+ instructions_->SetMultiLine(true);
+ instructions_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
+ instructions_->SetBorder(views::Border::CreateEmptyBorder(0, 0, 16, 0));
+ controls_container->AddChildView(instructions_);
input_row_ = new views::View();
input_row_->SetLayoutManager(
« no previous file with comments | « chrome/browser/ui/views/autofill/card_unmask_prompt_views.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698