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

Unified Diff: media/base/mime_util.cc

Issue 1280473002: Update ToLower/UpperASCII API (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 | « extensions/renderer/runtime_custom_bindings.cc ('k') | net/http/http_auth_handler_ntlm_portable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mime_util.cc
diff --git a/media/base/mime_util.cc b/media/base/mime_util.cc
index 8878edd8e73ac5837b7be28f02464fc253b8c60a..00a2c744cc4bb0e2e3433f563a87d0d6a6b8d652 100644
--- a/media/base/mime_util.cc
+++ b/media/base/mime_util.cc
@@ -533,7 +533,7 @@ static bool ParseH264CodecID(const std::string& codec_id,
return false;
}
- std::string profile = base::StringToUpperASCII(codec_id.substr(5, 4));
+ std::string profile = base::ToUpperASCII(codec_id.substr(5, 4));
if (IsValidH264BaselineProfile(profile)) {
*codec = MimeUtil::H264_BASELINE;
} else if (profile == "4D40") {
@@ -546,8 +546,7 @@ static bool ParseH264CodecID(const std::string& codec_id,
return true;
}
- *is_ambiguous =
- !IsValidH264Level(base::StringToUpperASCII(codec_id.substr(9)));
+ *is_ambiguous = !IsValidH264Level(base::ToUpperASCII(codec_id.substr(9)));
return true;
}
« no previous file with comments | « extensions/renderer/runtime_custom_bindings.cc ('k') | net/http/http_auth_handler_ntlm_portable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698