Index: components/translate/core/language_detection/language_detection_util.cc |
diff --git a/components/translate/core/language_detection/language_detection_util.cc b/components/translate/core/language_detection/language_detection_util.cc |
index 4ab86fc305b21694e1346b3fd06aa6bf9d5bf11c..82b5e0d4fa89e2483e050293762ba096fe3bec5f 100644 |
--- a/components/translate/core/language_detection/language_detection_util.cc |
+++ b/components/translate/core/language_detection/language_detection_util.cc |
@@ -270,10 +270,10 @@ void CorrectLanguageCodeTypo(std::string* code) { |
// Change everything up to a dash to lower-case and everything after to upper. |
size_t dash_index = code->find('-'); |
if (dash_index != std::string::npos) { |
- *code = base::StringToLowerASCII(code->substr(0, dash_index)) + |
- base::StringToUpperASCII(code->substr(dash_index)); |
+ *code = base::ToLowerASCII(code->substr(0, dash_index)) + |
+ base::ToUpperASCII(code->substr(dash_index)); |
} else { |
- *code = base::StringToLowerASCII(*code); |
+ *code = base::ToLowerASCII(*code); |
} |
} |