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

Unified Diff: chrome/renderer/media/chrome_key_systems.cc

Issue 1240183002: Update SplitString calls in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « chrome/installer/util/user_experiment.cc ('k') | chrome/renderer/page_load_histograms.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/chrome_key_systems.cc
diff --git a/chrome/renderer/media/chrome_key_systems.cc b/chrome/renderer/media/chrome_key_systems.cc
index c1db59a1db47854b1be46de3cad06dbcfefc5027..80112758b1d362405b3dda636aea98f5405371ed 100644
--- a/chrome/renderer/media/chrome_key_systems.cc
+++ b/chrome/renderer/media/chrome_key_systems.cc
@@ -137,9 +137,9 @@ void GetSupportedCodecsForPepperCdm(
DLOG(WARNING) << "Non-UTF-8 codecs string.";
// Continue using the best effort conversion.
}
- base::SplitString(codecs_string,
- kCdmSupportedCodecsValueDelimiter,
- codecs);
+ *codecs = base::SplitString(
+ codecs_string, std::string(1, kCdmSupportedCodecsValueDelimiter),
+ base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
break;
}
}
« no previous file with comments | « chrome/installer/util/user_experiment.cc ('k') | chrome/renderer/page_load_histograms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698