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

Unified Diff: third_party/libaddressinput/chromium/cpp/src/rule.h

Issue 237693002: requestAutocomplete should not unlatinize administrative region names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: third_party/libaddressinput/chromium/cpp/src/rule.h
diff --git a/third_party/libaddressinput/chromium/cpp/src/rule.h b/third_party/libaddressinput/chromium/cpp/src/rule.h
index cc0a3d7a3b34596505bfa1213d872493a4fc020c..035f4a21f3455f4bcdb492cba922e2f2a0d33069 100644
--- a/third_party/libaddressinput/chromium/cpp/src/rule.h
+++ b/third_party/libaddressinput/chromium/cpp/src/rule.h
@@ -165,13 +165,16 @@ class Rule {
int GetInvalidFieldMessageId(AddressField field) const;
// Outputs the sub key for a given user input. For example, Texas will map to
- // TX.
+ // TX. If |canonicalize_latin_name| is true, then canonicalizes latin names,
+ // too. This can lead to changing a latinized name into a local script name.
bool CanonicalizeSubKey(const std::string& user_input,
+ bool canonicalize_latin_name,
std::string* sub_key) const;
private:
// Finds |target| in |values| and sets |sub_key| to the associated value from
- // |sub_keys_|, or returns false if |target| is not in |values|.
+ // |sub_keys_|, or returns false if |target| is not in |values|. |sub_key| can
+ // be NULL.
bool GetMatchingSubKey(const std::string& target,
const std::vector<std::string>& values,
std::string* sub_key) const;

Powered by Google App Engine
This is Rietveld 408576698