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

Unified Diff: components/language_usage_metrics/language_usage_metrics.cc

Issue 1279123004: Replace ToLower calls to the new format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « components/history/core/browser/url_utils.cc ('k') | components/mime_util/mime_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/language_usage_metrics/language_usage_metrics.cc
diff --git a/components/language_usage_metrics/language_usage_metrics.cc b/components/language_usage_metrics/language_usage_metrics.cc
index 190507fb3997e7487d82897183c7698634835c49..ac44499c53ddea510f40d07e4863f4165e18638f 100644
--- a/components/language_usage_metrics/language_usage_metrics.cc
+++ b/components/language_usage_metrics/language_usage_metrics.cc
@@ -42,8 +42,7 @@ int LanguageUsageMetrics::ToLanguageCode(const std::string& locale) {
if (!parts.GetNext())
return 0;
- std::string language_part = parts.token();
- base::StringToLowerASCII(&language_part);
+ std::string language_part = base::ToLowerASCII(parts.token());
int language_code = 0;
for (std::string::iterator it = language_part.begin();
« no previous file with comments | « components/history/core/browser/url_utils.cc ('k') | components/mime_util/mime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698