Index: chrome/browser/devtools/browser_list_tabcontents_provider.cc |
diff --git a/chrome/browser/devtools/browser_list_tabcontents_provider.cc b/chrome/browser/devtools/browser_list_tabcontents_provider.cc |
index 06fcd3a30fe8d4db392282d588bd9f37335a3c98..a975222fe24e86fe8dca28378febfa2fcc7df7df 100644 |
--- a/chrome/browser/devtools/browser_list_tabcontents_provider.cc |
+++ b/chrome/browser/devtools/browser_list_tabcontents_provider.cc |
@@ -21,8 +21,8 @@ |
namespace { |
-const int kMinTetheringPort = 9333; |
-const int kMaxTetheringPort = 9444; |
+const uint16 kMinTetheringPort = 9333; |
+const uint16 kMaxTetheringPort = 9444; |
const int kBackLog = 10; |
@@ -85,7 +85,7 @@ BrowserListTabContentsProvider::CreateSocketForTethering( |
if (last_tethering_port_ == kMaxTetheringPort) |
last_tethering_port_ = kMinTetheringPort; |
- int port = ++last_tethering_port_; |
+ uint16 port = ++last_tethering_port_; |
*name = base::IntToString(port); |
scoped_ptr<net::TCPServerSocket> socket( |
new net::TCPServerSocket(nullptr, net::NetLog::Source())); |