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

Unified Diff: components/autofill/core/browser/autofill_profile_comparator.h

Issue 2125383002: Revert of Embed address normalization rewriting rules. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: components/autofill/core/browser/autofill_profile_comparator.h
diff --git a/components/autofill/core/browser/autofill_profile_comparator.h b/components/autofill/core/browser/autofill_profile_comparator.h
index d594dec3f62220120376703d98e6c7c8f8fb903c..0821db89742d349f381bd9d7e41a68b034bd2ac4 100644
--- a/components/autofill/core/browser/autofill_profile_comparator.h
+++ b/components/autofill/core/browser/autofill_profile_comparator.h
@@ -200,6 +200,12 @@
bool HaveMergeableAddresses(const AutofillProfile& p1,
const AutofillProfile& p2) const;
+ // Returns true if |state1| and |state2| both represent the same state in
+ // |country_code|.
+ bool IsMatchingState(const base::string16& country_code,
+ const base::string16& state1,
+ const base::string16& state2) const;
+
private:
l10n::CaseInsensitiveCompare case_insensitive_compare_;
std::unique_ptr<icu::Transliterator> transliterator_;

Powered by Google App Engine
This is Rietveld 408576698