| Index: content/browser/devtools/worker_devtools_agent_host.cc
|
| diff --git a/content/browser/devtools/worker_devtools_agent_host.cc b/content/browser/devtools/worker_devtools_agent_host.cc
|
| index ec77e2f16c390307259f4954d2c6537cb49241f4..d9d0b09d5950179676168235ccb9013914848a0f 100644
|
| --- a/content/browser/devtools/worker_devtools_agent_host.cc
|
| +++ b/content/browser/devtools/worker_devtools_agent_host.cc
|
| @@ -5,6 +5,7 @@
|
| #include "content/browser/devtools/worker_devtools_agent_host.h"
|
|
|
| #include "base/guid.h"
|
| +#include "base/json/json_reader.h"
|
| #include "content/browser/devtools/devtools_protocol_handler.h"
|
| #include "content/browser/devtools/protocol/schema_handler.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -45,11 +46,13 @@ bool WorkerDevToolsAgentHost::DispatchProtocolMessage(
|
| if (state_ != WORKER_INSPECTED)
|
| return true;
|
|
|
| + std::unique_ptr<base::Value> value = base::JSONReader::Read(message);
|
| int call_id;
|
| std::string method;
|
| - if (protocol_handler_->HandleOptionalMessage(session_id(), message, &call_id,
|
| - &method))
|
| + if (protocol_handler_->HandleOptionalMessage(
|
| + session_id(), std::move(value), &call_id, &method)) {
|
| return true;
|
| + }
|
|
|
| if (RenderProcessHost* host = RenderProcessHost::FromID(worker_id_.first)) {
|
| host->Send(new DevToolsAgentMsg_DispatchOnInspectorBackend(
|
|
|