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

Unified Diff: third_party/libaddressinput/chromium/chrome_address_validator.h

Issue 2338283003: [Payments] Normalize addresses before passing them to merchants. (Closed)
Patch Set: Async Created 4 years, 3 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: third_party/libaddressinput/chromium/chrome_address_validator.h
diff --git a/third_party/libaddressinput/chromium/chrome_address_validator.h b/third_party/libaddressinput/chromium/chrome_address_validator.h
index de5b39b71ef64fa2275c50d8d0028059443ab05f..ba90e0986a7b966a1b3bcf660c8d6c8a35210208 100644
--- a/third_party/libaddressinput/chromium/chrome_address_validator.h
+++ b/third_party/libaddressinput/chromium/chrome_address_validator.h
@@ -135,10 +135,10 @@ class AddressValidator {
size_t suggestion_limit,
std::vector< ::i18n::addressinput::AddressData>* suggestions) const;
- // Canonicalizes the administrative area in |address_data|. For example,
- // "texas" changes to "TX". Returns true on success, otherwise leaves
- // |address_data| alone and returns false.
- virtual bool CanonicalizeAdministrativeArea(
+ // Normalizes the administrative area, locality and dependent locality in
+ // the |address_data|. For example, "texas" changes to "TX". Returns true on
+ // success, otherwise leaves |address_data| alone and returns false.
+ virtual bool NormalizeAddress(
::i18n::addressinput::AddressData* address) const;
protected:

Powered by Google App Engine
This is Rietveld 408576698