| Index: base/i18n/rtl.cc
|
| diff --git a/base/i18n/rtl.cc b/base/i18n/rtl.cc
|
| index 392cb13bdb78c112be17c8ee2c17ee69faf2d0fb..1cccae289375f92495963cee7bbc9341167a8a48 100644
|
| --- a/base/i18n/rtl.cc
|
| +++ b/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
|
|
|