Chromium Code Reviews| Index: net/base/net_util.cc |
| diff --git a/net/base/net_util.cc b/net/base/net_util.cc |
| index 7ae4363d3b3778cb63fa6faa990def2c036d0723..37fbdc7022a23484cb97b34dec21e79fc2f3ba04 100644 |
| --- a/net/base/net_util.cc |
| +++ b/net/base/net_util.cc |
| @@ -72,6 +72,7 @@ |
| #include "unicode/uscript.h" |
| #include "unicode/uset.h" |
| +using base::StringPiece; |
|
cbentzel
2011/12/14 16:54:09
I wouldn't add a using declaration - it's only bei
|
| using base::Time; |
| namespace net { |
| @@ -1985,8 +1986,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(StringPiece(allowed_ports.begin() + last, |
| + allowed_ports.begin() + i), |
| &port); |
| ports.insert(port); |
| } |