diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-02 12:57:19 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-02 12:57:19 +0000 |
commit | a92534e1f02a21b5442a1f7108c824cb0a37018b (patch) | |
tree | 75e3319b8db43d8202eba98bdf2b45b6739c6aac /chrome/browser | |
parent | 82d3b399a5442ed93c7c03ba81acb6c92fd7fea7 (diff) | |
download | chromium_src-a92534e1f02a21b5442a1f7108c824cb0a37018b.zip chromium_src-a92534e1f02a21b5442a1f7108c824cb0a37018b.tar.gz chromium_src-a92534e1f02a21b5442a1f7108c824cb0a37018b.tar.bz2 |
DevTools: allow custom front-end configuration for the remote debugging.
Review URL: http://codereview.chromium.org/8776046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112681 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/ui/browser_init.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc index ac3b172..b1dd2db 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); + } g_browser_process->InitDevToolsHttpProtocolHandler( profile, "127.0.0.1", static_cast<int>(port), - ""); + frontend_str); } else { DLOG(WARNING) << "Invalid http debugger port number " << port; } |