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

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

Issue 2338283003: [Payments] Normalize addresses before passing them to merchants. (Closed)
Patch Set: Addressed vabr@'s comments 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..43a4a4061ccbe3d5bf1caa2d99808341d71201dd 100644
--- a/third_party/libaddressinput/chromium/chrome_address_validator.h
+++ b/third_party/libaddressinput/chromium/chrome_address_validator.h
@@ -135,12 +135,15 @@ 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 |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;
+ // Returns whether the rules associated with the |region_code| are loaded.
+ virtual bool AreRulesLoadedForRegion(const std::string& region_code);
+
protected:
// Constructor used only for MockAddressValidator.
AddressValidator();

Powered by Google App Engine
This is Rietveld 408576698