Index: net/base/net_util.cc |
diff --git a/net/base/net_util.cc b/net/base/net_util.cc |
index 7ae4363d3b3778cb63fa6faa990def2c036d0723..180a90514aa7458631dcca52daec2820f9a3048f 100644 |
--- a/net/base/net_util.cc |
+++ b/net/base/net_util.cc |
@@ -1985,8 +1985,8 @@ void SetExplicitlyAllowedPorts(const std::string& allowed_ports) { |
if (i == size || allowed_ports[i] == kComma) { |
if (i > last) { |
int port; |
- base::StringToInt(allowed_ports.begin() + last, |
- allowed_ports.begin() + i, |
+ base::StringToInt(base::StringPiece(allowed_ports.begin() + last, |
+ allowed_ports.begin() + i), |
&port); |
ports.insert(port); |
} |