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

Unified Diff: content/renderer/media/webrtc/stun_field_trial.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 | « content/renderer/manifest/manifest_parser.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc/stun_field_trial.cc
diff --git a/content/renderer/media/webrtc/stun_field_trial.cc b/content/renderer/media/webrtc/stun_field_trial.cc
index 2d155a4305990996b39d31940c00465f8b80c9ac..41be3588a749b09ce5071862cd892effe1095dca 100644
--- a/content/renderer/media/webrtc/stun_field_trial.cc
+++ b/content/renderer/media/webrtc/stun_field_trial.cc
@@ -133,8 +133,8 @@ bool ParseStunProbeParameters(const std::string& params,
int* interval_ms,
int* shared_socket_mode,
std::vector<rtc::SocketAddress>* servers) {
- std::vector<std::string> stun_params;
- base::SplitString(params, '/', &stun_params);
+ std::vector<std::string> stun_params = base::SplitString(
+ params, "/", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (stun_params.size() < 4) {
DLOG(ERROR) << "Not enough parameters specified in StartStunProbeTrial";
« no previous file with comments | « content/renderer/manifest/manifest_parser.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698