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

Unified Diff: third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp

Issue 2700893003: Various MimeUtil cleanups. (Closed)
Patch Set: Feedback Created 3 years, 10 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 | « media/filters/source_buffer_state.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp
diff --git a/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp b/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp
index d3ba4637e257cc8888249f1b013b81757a68946e..33b016927bb9dd38033d88075c676b7828a5fd40 100644
--- a/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp
+++ b/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp
@@ -140,7 +140,7 @@ MIMETypeRegistry::SupportsType MIMETypeRegistry::supportsMediaMIMEType(
const String& codecs) {
const std::string asciiMimeType = ToLowerASCIIOrEmpty(mimeType);
std::vector<std::string> codecVector;
- media::ParseCodecString(ToASCIIOrEmpty(codecs), &codecVector, false);
+ media::SplitCodecsToVector(ToASCIIOrEmpty(codecs), &codecVector, false);
return static_cast<SupportsType>(
media::IsSupportedMediaFormat(asciiMimeType, codecVector));
}
@@ -151,7 +151,7 @@ bool MIMETypeRegistry::isSupportedMediaSourceMIMEType(const String& mimeType,
if (asciiMimeType.empty())
return false;
std::vector<std::string> parsedCodecIds;
- media::ParseCodecString(ToASCIIOrEmpty(codecs), &parsedCodecIds, false);
+ media::SplitCodecsToVector(ToASCIIOrEmpty(codecs), &parsedCodecIds, false);
return static_cast<MIMETypeRegistry::SupportsType>(
media::StreamParserFactory::IsTypeSupported(asciiMimeType,
parsedCodecIds));
« no previous file with comments | « media/filters/source_buffer_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698