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

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

Issue 17391012: Implement 'invalid' AutocompleteErrorEvent#reason (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index 32dff53c14c4840ad145f0b026ff0686ee765b7a..eaf5d91f34fb887578d893d37328bfad037c3995 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -1152,6 +1152,12 @@ gfx::Size AutofillDialogViews::GetSize() const {
return GetWidget() ? GetWidget()->GetRootView()->size() : gfx::Size();
}
+void AutofillDialogViews::SetCvc(const base::string16& cvc) {
+ DCHECK(controller_->SectionIsActive(SECTION_CC));
+ GroupForSection(SECTION_CC)->suggested_info->decorated_textfield()->
+ textfield()->SetText(cvc);
+}
+
bool AutofillDialogViews::AcceleratorPressed(
const ui::Accelerator& accelerator) {
ui::KeyboardCode key = accelerator.key_code();

Powered by Google App Engine
This is Rietveld 408576698