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

Unified Diff: components/devtools_http_handler/devtools_http_handler.cc

Issue 2047833002: DevTools: introduce browser domain for basic target discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 6 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: components/devtools_http_handler/devtools_http_handler.cc
diff --git a/components/devtools_http_handler/devtools_http_handler.cc b/components/devtools_http_handler/devtools_http_handler.cc
index a5b173afcc4f48540e7883de704010db2e0f7892..89325284a9fd948a77fa1f4fd2e8e5939628294e 100644
--- a/components/devtools_http_handler/devtools_http_handler.cc
+++ b/components/devtools_http_handler/devtools_http_handler.cc
@@ -277,7 +277,7 @@ class DevToolsAgentHostClientImpl : public DevToolsAgentHostClient {
~DevToolsAgentHostClientImpl() override {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (agent_host_.get())
- agent_host_->DetachClient();
+ agent_host_->DetachClient(this);
}
void AgentHostClosed(DevToolsAgentHost* agent_host,
@@ -312,7 +312,7 @@ class DevToolsAgentHostClientImpl : public DevToolsAgentHostClient {
void OnMessage(const std::string& message) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (agent_host_.get())
- agent_host_->DispatchProtocolMessage(message);
+ agent_host_->DispatchProtocolMessage(this, message);
}
private:
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | content/browser/devtools/browser_devtools_agent_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698