Index: content/browser/devtools/devtools_session.cc |
diff --git a/content/browser/devtools/devtools_session.cc b/content/browser/devtools/devtools_session.cc |
index 4806ea394699f8a0f0dd6f921bb0f1d8a0a9234e..e1805f172265087b96e2a042951de8a3f3224ece 100644 |
--- a/content/browser/devtools/devtools_session.cc |
+++ b/content/browser/devtools/devtools_session.cc |
@@ -25,12 +25,15 @@ void DevToolsSession::ResetDispatcher() { |
void DevToolsSession::sendProtocolResponse( |
int call_id, |
- const std::string& message) { |
- agent_host_->SendMessageToClient(session_id_, message); |
+ std::unique_ptr<protocol::Serializable> message) { |
+ agent_host_->SendMessageToClient(session_id_, |
+ message->serializeValue()->toJSONString()); |
} |
-void DevToolsSession::sendProtocolNotification(const std::string& message) { |
- agent_host_->SendMessageToClient(session_id_, message); |
+void DevToolsSession::sendProtocolNotification( |
+ std::unique_ptr<protocol::Serializable> message) { |
+ agent_host_->SendMessageToClient(session_id_, |
+ message->serializeValue()->toJSONString()); |
} |
void DevToolsSession::flushProtocolNotifications() { |