| Index: content/shell/browser/shell_devtools_frontend.cc
|
| diff --git a/content/shell/browser/shell_devtools_frontend.cc b/content/shell/browser/shell_devtools_frontend.cc
|
| index e580e28a7a9ae6ac5b290acf52a76a40b6b8758a..982337a0155b50e36249f6ac5f9bd3e7c6a8be63 100644
|
| --- a/content/shell/browser/shell_devtools_frontend.cc
|
| +++ b/content/shell/browser/shell_devtools_frontend.cc
|
| @@ -143,7 +143,7 @@ void ShellDevToolsFrontend::Close() {
|
| void ShellDevToolsFrontend::DisconnectFromTarget() {
|
| if (!agent_host_)
|
| return;
|
| - agent_host_->DetachClient();
|
| + agent_host_->DetachClient(this);
|
| agent_host_ = NULL;
|
| }
|
|
|
| @@ -177,7 +177,7 @@ void ShellDevToolsFrontend::DocumentAvailableInMainFrame() {
|
|
|
| void ShellDevToolsFrontend::WebContentsDestroyed() {
|
| if (agent_host_)
|
| - agent_host_->DetachClient();
|
| + agent_host_->DetachClient(this);
|
| delete this;
|
| }
|
|
|
| @@ -204,7 +204,7 @@ void ShellDevToolsFrontend::HandleMessageFromDevToolsFrontend(
|
| std::string protocol_message;
|
| if (!params->GetString(0, &protocol_message))
|
| return;
|
| - agent_host_->DispatchProtocolMessage(protocol_message);
|
| + agent_host_->DispatchProtocolMessage(this, protocol_message);
|
| } else if (method == "loadCompleted") {
|
| web_contents()->GetMainFrame()->ExecuteJavaScriptForTests(
|
| base::ASCIIToUTF16("DevToolsAPI.setUseSoftMenu(true);"));
|
|
|