Index: net/ftp/ftp_network_transaction.cc |
diff --git a/net/ftp/ftp_network_transaction.cc b/net/ftp/ftp_network_transaction.cc |
index f34f7a83622661c8413bf10ef9f5c07131cdba3e..09644867d7d257d3dba73b9b104298c1a3e66a06 100644 |
--- a/net/ftp/ftp_network_transaction.cc |
+++ b/net/ftp/ftp_network_transaction.cc |
@@ -182,8 +182,8 @@ bool ExtractPortFromPASVResponse(const FtpCtrlResponse& response, int* port) { |
// Split the line into comma-separated pieces and extract |
// the last two. |
- std::vector<std::string> pieces; |
- base::SplitString(line, ',', &pieces); |
+ std::vector<base::StringPiece> pieces = base::SplitStringPiece( |
+ line, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
if (pieces.size() != 6) |
return false; |