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

Unified Diff: components/autofill/browser/personal_data_manager.cc

Issue 14148004: [Autofill] Move IsValidState() into validation.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't rely on a magic constant Created 7 years, 8 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 | « components/autofill/browser/form_group.cc ('k') | components/autofill/browser/state_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/browser/personal_data_manager.cc
diff --git a/components/autofill/browser/personal_data_manager.cc b/components/autofill/browser/personal_data_manager.cc
index c80d85e076c1334e08069572a34ec42d2e2c6041..481ca2468d0efa7ac663d0d3788a9b7ccc28cc6b 100644
--- a/components/autofill/browser/personal_data_manager.cc
+++ b/components/autofill/browser/personal_data_manager.cc
@@ -17,7 +17,6 @@
#include "components/autofill/browser/autofill_country.h"
#include "components/autofill/browser/autofill_field.h"
#include "components/autofill/browser/autofill_metrics.h"
-#include "components/autofill/browser/form_group.h"
#include "components/autofill/browser/form_structure.h"
#include "components/autofill/browser/personal_data_manager_observer.h"
#include "components/autofill/browser/phone_number.h"
@@ -689,7 +688,7 @@ bool PersonalDataManager::IsValidLearnableProfile(
// Reject profiles with invalid US state information.
base::string16 state = profile.GetRawInfo(ADDRESS_HOME_STATE);
if (profile.GetRawInfo(ADDRESS_HOME_COUNTRY) == ASCIIToUTF16("US") &&
- !state.empty() && !FormGroup::IsValidState(state)) {
+ !state.empty() && !IsValidState(state)) {
return false;
}
« no previous file with comments | « components/autofill/browser/form_group.cc ('k') | components/autofill/browser/state_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698