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

Unified Diff: media/base/mime_util.cc

Issue 1272823003: Update SplitString calls to new form (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 | « gpu/config/gpu_util.cc ('k') | media/base/mime_util_unittest.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..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;
« no previous file with comments | « gpu/config/gpu_util.cc ('k') | media/base/mime_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698