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

Unified Diff: jingle/notifier/communicator/single_login_attempt.cc

Issue 1284833004: Remove remaining legacy SplitString calls. (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 | « gin/modules/file_module_provider.cc ('k') | mojo/runner/context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/communicator/single_login_attempt.cc
diff --git a/jingle/notifier/communicator/single_login_attempt.cc b/jingle/notifier/communicator/single_login_attempt.cc
index a7309ba2542d70388affb46c36aa3fb82c025b79..04c074fbd591d427931b5911957a6bbabed740a4 100644
--- a/jingle/notifier/communicator/single_login_attempt.cc
+++ b/jingle/notifier/communicator/single_login_attempt.cc
@@ -57,8 +57,8 @@ namespace {
// unparseable, it assumes the default XMPP port. The hostname may be
// empty.
net::HostPortPair ParseRedirectText(const std::string& redirect_text) {
- std::vector<std::string> parts;
- base::SplitString(redirect_text, ':', &parts);
+ std::vector<std::string> parts = base::SplitString(
+ redirect_text, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
net::HostPortPair redirect_server;
redirect_server.set_port(kDefaultXmppPort);
if (parts.empty()) {
« no previous file with comments | « gin/modules/file_module_provider.cc ('k') | mojo/runner/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698