diff options
author | georgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-08 21:49:55 +0000 |
---|---|---|
committer | georgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-08 21:49:55 +0000 |
commit | 0d5a3df2a5d0b89305bbad7c0efe8532e1cccb40 (patch) | |
tree | 71b7e6ac126d5511f658246efd03af5ef4cb8e2b /chrome/browser/views/autofill_profiles_view_win.h | |
parent | 36410e3c67ddc66377f184449cdd1b4bddff75cb (diff) | |
download | chromium_src-0d5a3df2a5d0b89305bbad7c0efe8532e1cccb40.zip chromium_src-0d5a3df2a5d0b89305bbad7c0efe8532e1cccb40.tar.gz chromium_src-0d5a3df2a5d0b89305bbad7c0efe8532e1cccb40.tar.bz2 |
Changed validation based on the discussion
TEST="Save" is always enabled, if user changes address/CC label it changes to "Address"/"Credit Card" after saving
BUG=33026
Review URL: http://codereview.chromium.org/577037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38398 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/autofill_profiles_view_win.h')
-rw-r--r-- | chrome/browser/views/autofill_profiles_view_win.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/views/autofill_profiles_view_win.h b/chrome/browser/views/autofill_profiles_view_win.h index 6345869..eeb522d 100644 --- a/chrome/browser/views/autofill_profiles_view_win.h +++ b/chrome/browser/views/autofill_profiles_view_win.h @@ -73,9 +73,8 @@ class AutoFillProfilesView : public views::View, // being changed. void CollapseStateChanged( std::vector<EditableSetInfo>::iterator field_set_iterator); - // Validates data and sets data_valid_, to allow or deny save. - void ValidateDataAndUpdateButtons(); - bool data_valid() const { return data_valid_; } + // Validates data and fixes invalid data. + void ValidateAndFixLabel(); // views::View methods: virtual void Layout(); @@ -356,7 +355,6 @@ class AutoFillProfilesView : public views::View, AutoFillDialogObserver* observer_; std::vector<EditableSetInfo> profiles_set_; std::vector<EditableSetInfo> credit_card_set_; - bool data_valid_; views::Button* save_changes_; AutoFillScrollView* scroll_view_; |