| Index: chrome/browser/devtools/remote_debugging_server.cc
|
| diff --git a/chrome/browser/devtools/remote_debugging_server.cc b/chrome/browser/devtools/remote_debugging_server.cc
|
| index cf2750f276719814df20f9c2c79bcca07ccf5fa3..c0da8a673e96332d354dca4ab3a144e438073142 100644
|
| --- a/chrome/browser/devtools/remote_debugging_server.cc
|
| +++ b/chrome/browser/devtools/remote_debugging_server.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <utility>
|
|
|
| +#include "base/command_line.h"
|
| #include "base/lazy_instance.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ptr_util.h"
|
| @@ -19,6 +20,8 @@
|
| #include "chrome/browser/ui/browser_list.h"
|
| #include "chrome/common/chrome_content_client.h"
|
| #include "chrome/common/chrome_paths.h"
|
| +#include "chrome/common/chrome_switches.h"
|
| +#include "chrome/common/url_constants.h"
|
| #include "components/devtools_http_handler/devtools_http_handler.h"
|
| #include "components/devtools_http_handler/devtools_http_handler_delegate.h"
|
| #include "components/history/core/browser/top_sites.h"
|
| @@ -177,8 +180,14 @@ RemoteDebuggingServer::RemoteDebuggingServer(const std::string& ip,
|
| PathService::Get(chrome::DIR_INSPECTOR, &debug_frontend_dir);
|
| #endif
|
|
|
| + std::string frontend_url;
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kRemoteDebuggingFrontend)) {
|
| + frontend_url = chrome::kChromeUIDevToolsCustomURL;
|
| + }
|
| +
|
| devtools_http_handler_.reset(new devtools_http_handler::DevToolsHttpHandler(
|
| - base::WrapUnique(new TCPServerSocketFactory(ip, port)), std::string(),
|
| + base::WrapUnique(new TCPServerSocketFactory(ip, port)), frontend_url,
|
| new ChromeDevToolsHttpHandlerDelegate(), output_dir, debug_frontend_dir,
|
| version_info::GetProductNameAndVersionForUserAgent(), ::GetUserAgent()));
|
| }
|
|
|