Index: net/proxy/proxy_bypass_rules.cc |
=================================================================== |
--- net/proxy/proxy_bypass_rules.cc (revision 114929) |
+++ net/proxy/proxy_bypass_rules.cc (working copy) |
@@ -7,7 +7,6 @@ |
#include "base/stl_util.h" |
#include "base/stringprintf.h" |
#include "base/string_number_conversions.h" |
-#include "base/string_piece.h" |
#include "base/string_tokenizer.h" |
#include "base/string_util.h" |
#include "net/base/net_util.h" |
@@ -316,9 +315,7 @@ |
host = raw; |
port = -1; |
if (pos_colon != std::string::npos) { |
- if (!base::StringToInt(base::StringPiece(raw.begin() + pos_colon + 1, |
- raw.end()), |
- &port) || |
+ if (!base::StringToInt(raw.begin() + pos_colon + 1, raw.end(), &port) || |
(port < 0 || port > 0xFFFF)) { |
return false; // Port was invalid. |
} |