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

Unified Diff: chrome/browser/autofill/select_control_handler.cc

Issue 6676031: Autofill database migration to clean up bogus profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move to Lingesh's observer mechanism. Created 9 years, 9 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/autofill/select_control_handler.cc
diff --git a/chrome/browser/autofill/select_control_handler.cc b/chrome/browser/autofill/select_control_handler.cc
index dc44e7273c0c69c77561368c139a0c7a076c32d2..25bbe722edcdf4048d065f5ed11b8e4dabc4a816 100644
--- a/chrome/browser/autofill/select_control_handler.cc
+++ b/chrome/browser/autofill/select_control_handler.cc
@@ -242,4 +242,8 @@ void FillSelectControl(const FormGroup& form_group,
return;
}
+bool IsValidState(string16 value) {
+ return !State::Abbreviation(value).empty() || !State::FullName(value).empty();
+}
+
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698