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

Unified Diff: chrome/browser/views/autofill_profiles_view_win.cc

Issue 3265005: fix for [AutoFill credit cards] Editing last 4 digit card number is not save... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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/views/autofill_profiles_view_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/autofill_profiles_view_win.cc
===================================================================
--- chrome/browser/views/autofill_profiles_view_win.cc (revision 57601)
+++ chrome/browser/views/autofill_profiles_view_win.cc (working copy)
@@ -653,6 +653,7 @@
std::vector<EditableSetInfo>::iterator field_set)
: editable_fields_set_(field_set),
temporary_info_(*editable_fields_set_),
+ has_credit_card_number_been_edited_(false),
observer_(observer),
billing_model_(billing_model),
combo_box_billing_(NULL),
@@ -864,10 +865,10 @@
bool AutoFillProfilesView::EditableSetViewContents::HandleKeystroke(
views::Textfield* sender, const views::Textfield::Keystroke& keystroke) {
if (sender == text_fields_[TEXT_CC_NUMBER] &&
- !temporary_info_.has_credit_card_number_been_edited) {
+ !has_credit_card_number_been_edited_) {
// You cannot edit obfuscated number, you must retype it anew.
sender->SetText(string16());
- temporary_info_.has_credit_card_number_been_edited = true;
+ has_credit_card_number_been_edited_ = true;
}
return false;
}
« no previous file with comments | « chrome/browser/views/autofill_profiles_view_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698