Index: content/shell/shell_browser_main_parts.cc |
diff --git a/content/shell/shell_browser_main_parts.cc b/content/shell/shell_browser_main_parts.cc |
index 3bd53e3fdcfad4b9fc416c1d282677a57456de70..738ca263cd3d50ab1e9b541a3967dcda52ae4da3 100644 |
--- a/content/shell/shell_browser_main_parts.cc |
+++ b/content/shell/shell_browser_main_parts.cc |
@@ -8,7 +8,6 @@ |
#include "base/command_line.h" |
#include "base/files/file_path.h" |
#include "base/message_loop.h" |
-#include "base/string_number_conversions.h" |
#include "base/threading/thread.h" |
#include "base/threading/thread_restrictions.h" |
#include "cc/base/switches.h" |
@@ -113,25 +112,7 @@ void ShellBrowserMainParts::PreMainMessageLoopRun() { |
Shell::Initialize(); |
net::NetModule::SetResourceProvider(PlatformResourceProvider); |
- int port = 0; |
-// On android the port number isn't used. |
-#if !defined(OS_ANDROID) |
- // See if the user specified a port on the command line (useful for |
- // automation). If not, use an ephemeral port by specifying 0. |
- const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
- if (command_line.HasSwitch(switches::kRemoteDebuggingPort)) { |
- int temp_port; |
- std::string port_str = |
- command_line.GetSwitchValueASCII(switches::kRemoteDebuggingPort); |
- if (base::StringToInt(port_str, &temp_port) && |
- temp_port > 0 && temp_port < 65535) { |
- port = temp_port; |
- } else { |
- DLOG(WARNING) << "Invalid http debugger port number " << temp_port; |
- } |
- } |
-#endif |
- devtools_delegate_ = new ShellDevToolsDelegate(browser_context_.get(), port); |
+ devtools_delegate_ = new ShellDevToolsDelegate(browser_context_.get()); |
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) { |
Shell::CreateNewWindow(browser_context_.get(), |