Index: media/base/mime_util.cc |
diff --git a/media/base/mime_util.cc b/media/base/mime_util.cc |
index 8878edd8e73ac5837b7be28f02464fc253b8c60a..2ee28059cece81fcb2c1fb17d285f93314f4fa0d 100644 |
--- a/media/base/mime_util.cc |
+++ b/media/base/mime_util.cc |
@@ -417,9 +417,9 @@ bool MimeUtil::AreSupportedMediaCodecs( |
void MimeUtil::ParseCodecString(const std::string& codecs, |
std::vector<std::string>* codecs_out, |
bool strip) { |
- std::string no_quote_codecs; |
- base::TrimString(codecs, "\"", &no_quote_codecs); |
- base::SplitString(no_quote_codecs, ',', codecs_out); |
+ *codecs_out = base::SplitString( |
+ base::TrimString(codecs, "\"", base::TRIM_ALL), |
+ ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_NONEMPTY); |
if (!strip) |
return; |