Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1465)

Unified Diff: chrome/browser/debugger/remote_debugging_server.cc

Issue 10386048: Decouple DevTools from socket implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/debugger/remote_debugging_server.cc
diff --git a/chrome/browser/debugger/remote_debugging_server.cc b/chrome/browser/debugger/remote_debugging_server.cc
index 0094e7e38e10f5d9a66f3a20c36c84dd161cab5f..472df71a1fb83e473c1b4a11f7a5c93ffe818896 100644
--- a/chrome/browser/debugger/remote_debugging_server.cc
+++ b/chrome/browser/debugger/remote_debugging_server.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
#include "chrome/browser/ui/webui/devtools_ui.h"
#include "content/public/browser/devtools_http_handler.h"
+#include "net/base/tcp_listen_socket.h"
RemoteDebuggingServer::RemoteDebuggingServer(Profile* profile,
const std::string& ip,
@@ -19,12 +20,12 @@ RemoteDebuggingServer::RemoteDebuggingServer(Profile* profile,
net::URLRequestContextGetter* request_context_getter =
profile->GetRequestContext();
- devtools_http_handler_ =
- content::DevToolsHttpHandler::Start(ip,
- port,
- frontend_url,
- request_context_getter,
- new BrowserListTabContentsProvider());
+
+ devtools_http_handler_ = content::DevToolsHttpHandler::Start(
+ frontend_url,
+ new net::TCPListenSocketFactory factory(ip, port),
pfeldman 2012/05/14 11:12:00 Remove " factory"
Philippe 2012/05/14 12:36:52 Wow indeed. Evil copy and paste. I'm surprised tha
+ request_context_getter,
+ new BrowserListTabContentsProvider());
}
RemoteDebuggingServer::~RemoteDebuggingServer() {

Powered by Google App Engine
This is Rietveld 408576698