Chromium Code Reviews| Index: chrome/browser/ui/browser_init.cc |
| diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc |
| index ac3b17221f11c1a13d66c29c0ce5483b99e7d552..7a337196ed088dcba9bb39cf1a2e9e7f5b2e40d2 100644 |
| --- a/chrome/browser/ui/browser_init.cc |
| +++ b/chrome/browser/ui/browser_init.cc |
| @@ -637,11 +637,16 @@ bool BrowserInit::LaunchWithProfile::Launch( |
| command_line_.GetSwitchValueASCII(switches::kRemoteDebuggingPort); |
| int64 port; |
| if (base::StringToInt64(port_str, &port) && port > 0 && port < 65535) { |
| + std::string frontend_str; |
| + if (command_line_.HasSwitch(switches::kRemoteDebuggingFrontend)) { |
| + frontend_str = command_line_.GetSwitchValueASCII( |
| + switches::kRemoteDebuggingFrontend); |
|
yurys
2011/12/02 12:12:54
nit: wrong alignment
|
| + } |
| g_browser_process->InitDevToolsHttpProtocolHandler( |
| profile, |
| "127.0.0.1", |
| static_cast<int>(port), |
| - ""); |
| + frontend_str); |
| } else { |
| DLOG(WARNING) << "Invalid http debugger port number " << port; |
| } |