Index: content/browser/devtools/protocol/devtools_protocol_browsertest.cc |
diff --git a/content/browser/devtools/protocol/devtools_protocol_browsertest.cc b/content/browser/devtools/protocol/devtools_protocol_browsertest.cc |
index 0a243395c5f5800c72a2551e2733cdb6cfb30244..60be9a7038a8f46679b7c3800bd3f196544eb2b6 100644 |
--- a/content/browser/devtools/protocol/devtools_protocol_browsertest.cc |
+++ b/content/browser/devtools/protocol/devtools_protocol_browsertest.cc |
@@ -122,7 +122,7 @@ class DevToolsProtocolTest : public ContentBrowserTest, |
std::string json_command; |
base::JSONWriter::Write(command, &json_command); |
- agent_host_->DispatchProtocolMessage(json_command); |
+ agent_host_->DispatchProtocolMessage(this, json_command); |
// Some messages are dispatched synchronously. |
// Only run loop if we are not finished yet. |
if (in_dispatch_ && wait) { |
@@ -164,7 +164,7 @@ class DevToolsProtocolTest : public ContentBrowserTest, |
void TearDownOnMainThread() override { |
if (agent_host_) { |
- agent_host_->DetachClient(); |
+ agent_host_->DetachClient(this); |
agent_host_ = nullptr; |
} |
} |