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

Unified Diff: trunk/src/components/translate/core/language_detection/language_detection_util.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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
Index: trunk/src/components/translate/core/language_detection/language_detection_util.cc
===================================================================
--- trunk/src/components/translate/core/language_detection/language_detection_util.cc (revision 289319)
+++ trunk/src/components/translate/core/language_detection/language_detection_util.cc (working copy)
@@ -292,7 +292,7 @@
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));
+ StringToUpperASCII(code->substr(dash_index));
} else {
*code = base::StringToLowerASCII(*code);
}
« no previous file with comments | « trunk/src/components/search_engines/template_url_parser.cc ('k') | trunk/src/components/url_fixer/url_fixer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698