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

Unified Diff: content/browser/debugger/devtools_protocol_handler.cc

Issue 7309011: Remove dependencies on extensions from content/browser/debugger. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. Created 9 years, 5 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
« no previous file with comments | « content/browser/debugger/DEPS ('k') | content/browser/debugger/devtools_sanity_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/debugger/devtools_protocol_handler.cc
diff --git a/content/browser/debugger/devtools_protocol_handler.cc b/content/browser/debugger/devtools_protocol_handler.cc
index 2fa23c066e9b284591d313a1b3a970c5b205afad..cefe76fa5814869405e1d465ed633374c5459b86 100644
--- a/content/browser/debugger/devtools_protocol_handler.cc
+++ b/content/browser/debugger/devtools_protocol_handler.cc
@@ -5,13 +5,14 @@
#include "content/browser/debugger/devtools_protocol_handler.h"
#include "base/logging.h"
+#include "content/browser/content_browser_client.h"
#include "content/browser/debugger/inspectable_tab_proxy.h"
#include "content/browser/debugger/debugger_remote_service.h"
#include "content/browser/debugger/devtools_remote_message.h"
#include "content/browser/debugger/devtools_remote_listen_socket.h"
#include "content/browser/debugger/devtools_remote_service.h"
-#include "content/browser/debugger/extension_ports_remote_service.h"
#include "content/browser/browser_thread.h"
+#include "content/common/content_client.h"
// static
scoped_refptr<DevToolsProtocolHandler> DevToolsProtocolHandler::Start(
@@ -24,9 +25,10 @@ scoped_refptr<DevToolsProtocolHandler> DevToolsProtocolHandler::Start(
proto_handler->RegisterDestination(
new DebuggerRemoteService(proto_handler),
DebuggerRemoteService::kToolName);
- proto_handler->RegisterDestination(
- new ExtensionPortsRemoteService(proto_handler),
- ExtensionPortsRemoteService::kToolName);
+
+ content::GetContentClient()->browser()->RegisterDevToolsRemoteListeners(
+ proto_handler);
+
proto_handler->Start();
return proto_handler;
}
« no previous file with comments | « content/browser/debugger/DEPS ('k') | content/browser/debugger/devtools_sanity_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698