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 3cdbe7f435c62fa3e3bc995f5a9576bc645ae447..9556bb9351a9543ea0467b7dd2a539877957a922 100644 |
--- a/components/translate/core/language_detection/language_detection_util.cc |
+++ b/components/translate/core/language_detection/language_detection_util.cc |
@@ -197,7 +197,8 @@ bool CanCLDComplementSubCode( |
// CLD agree that the language is Chinese and Content-Language doesn't know |
// which dialect is used, CLD language has priority. |
// TODO(hajimehoshi): How about the other dialects like zh-MO? |
- return page_language == "zh" && StartsWithASCII(cld_language, "zh-", false); |
+ return page_language == "zh" && |
+ base::StartsWithASCII(cld_language, "zh-", false); |
} |
} // namespace |
@@ -380,7 +381,7 @@ bool IsSameOrSimilarLanguages(const std::string& page_language, |
bool MaybeServerWrongConfiguration(const std::string& page_language, |
const std::string& cld_language) { |
// If |page_language| is not "en-*", respect it and just return false here. |
- if (!StartsWithASCII(page_language, "en", false)) |
+ if (!base::StartsWithASCII(page_language, "en", false)) |
return false; |
// A server provides a language meta information representing "en-*". But it |