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

Unified Diff: third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_ui.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_ui.h
diff --git a/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_ui.h b/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_ui.h
index eecbcd8a924bf1d8599ab97cbf536c32f6bbe649..91d917b91a08637b8fa47d7c178857f63f0b2364 100644
--- a/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_ui.h
+++ b/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_ui.h
@@ -28,26 +28,9 @@
// Returns the list of supported CLDR region codes.
const std::vector<std::string>& GetRegionCodes();
-// Returns the UI components for the CLDR |region_code|. These components
-// represent the address input and formatting rules for |region_code|.
-//
-// Sets the |components_language_code| to the BCP 47 language code that should
-// be used to format the address that the user entered via the UI components.
-// The |components_language_code| parameter can be NULL.
-//
-// If |region_code| has rules for latinized address format and the BCP 47
-// |ui_language_code| is not the primary language code used in the region, then
-// returns the latinized version of the UI components.
-//
-// If the UI language has a variation, then the function ignores the variation.
-// For example, the function does not distinguish among zh-hans, zh-hant, and
-// zh.
-//
-// Returns an empty vector on error.
-std::vector<AddressUiComponent> BuildComponents(
- const std::string& region_code,
- const std::string& ui_language_code,
- std::string* components_language_code);
+// Returns the UI components for the CLDR |region_code|. Returns an empty vector
+// on error.
+std::vector<AddressUiComponent> BuildComponents(const std::string& region_code);
// Returns the fields which are required for the CLDR |region_code|. Returns an
// empty vector on error.

Powered by Google App Engine
This is Rietveld 408576698