| 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 76e29365762156cb0697442c4a8cfa8a12583a30..2b11e8eaa2481f35fdc17a584788e4a4e6ff16de 100644
|
| --- a/content/shell/browser/shell_devtools_frontend.cc
|
| +++ b/content/shell/browser/shell_devtools_frontend.cc
|
| @@ -179,8 +179,9 @@ void ShellDevToolsFrontend::HandleMessageFromDevToolsFrontendToBackend(
|
|
|
| void ShellDevToolsFrontend::DispatchOnInspectorFrontend(
|
| const std::string& message) {
|
| - if (frontend_host_)
|
| - frontend_host_->DispatchOnDevToolsFrontend(message);
|
| + std::string code = "InspectorFrontendAPI.dispatchMessage(" + message + ");";
|
| + base::string16 javascript = base::UTF8ToUTF16(code);
|
| + web_contents()->GetMainFrame()->ExecuteJavaScript(javascript);
|
| }
|
|
|
| void ShellDevToolsFrontend::InspectedContentsClosing() {
|
|
|