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

Unified Diff: third_party/libaddressinput/chromium/canonicalize_string.cc

Issue 275913002: Use the root locale instead of the system default locale. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libaddressinput/chromium/canonicalize_string.cc
diff --git a/third_party/libaddressinput/chromium/canonicalize_string.cc b/third_party/libaddressinput/chromium/canonicalize_string.cc
index b6d9928a4f1b3113b5049bfe2301e6b136dc448f..3bb8c929ba15deddcf275dd557c41cc4439d2259 100644
--- a/third_party/libaddressinput/chromium/canonicalize_string.cc
+++ b/third_party/libaddressinput/chromium/canonicalize_string.cc
@@ -6,6 +6,10 @@
#include "base/logging.h"
#include "cpp/include/libaddressinput/util/scoped_ptr.h"
+#include "third_party/icu/source/common/unicode/errorcode.h"
+#include "third_party/icu/source/common/unicode/locid.h"
+#include "third_party/icu/source/common/unicode/unistr.h"
+#include "third_party/icu/source/common/unicode/utypes.h"
#include "third_party/icu/source/i18n/unicode/coll.h"
namespace i18n {
@@ -17,7 +21,9 @@ class ChromeStringCanonicalizer : public StringCanonicalizer {
public:
ChromeStringCanonicalizer()
: error_code_(U_ZERO_ERROR),
- collator_(icu::Collator::createInstance(error_code_)) {
+ collator_(
+ icu::Collator::createInstance(
+ icu::Locale::getRoot(), error_code_)) {
collator_->setStrength(icu::Collator::PRIMARY);
DCHECK(U_SUCCESS(error_code_));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698