| 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..9d45c9219f3d568b92ec239cf372732429b0e03b 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;
|
| }
|
|
|
|
|