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

Unified Diff: third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h

Issue 211443003: Revert of Determine language code and type of format for address. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/include/libaddressinput/address_data.h
diff --git a/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h b/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h
index e101877b3b2960b7e0109ce3e37fa8143d6f09dc..e9ca7a43aa579bc8c4758a0d936475c50c7afff6 100644
--- a/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h
+++ b/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h
@@ -56,6 +56,11 @@
// which comprises multiple fields.
void SetFieldValue(AddressField field, const std::string& value);
+ // Guesses the BCP 47 language code to be used for formatting the address for
+ // display. For example, guesses "en" if the |country_code| is "US". Can
+ // return an empty string.
+ const std::string& GuessLanguageCode() const;
+
// The BCP 47 language code used to guide how the address is formatted for
// display. The same address may have different representations in different
// languages.

Powered by Google App Engine
This is Rietveld 408576698