summaryrefslogtreecommitdiffstats
path: root/chromium/base/i18n/rtl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/i18n/rtl.cc')
-rw-r--r--chromium/base/i18n/rtl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/base/i18n/rtl.cc b/chromium/base/i18n/rtl.cc
index 392cb13bdb7..1cccae28937 100644
--- a/chromium/base/i18n/rtl.cc
+++ b/chromium/base/i18n/rtl.cc
@@ -74,8 +74,8 @@ std::string GetConfiguredLocale() {
}
// Convert the ICU canonicalized locale to a string.
-std::string GetCanonicalLocale(const char* locale) {
- return GetLocaleString(icu::Locale::createCanonical(locale));
+std::string GetCanonicalLocale(const std::string& locale) {
+ return GetLocaleString(icu::Locale::createCanonical(locale.c_str()));
}
// Convert Chrome locale name to ICU locale name