Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1053)

Unified Diff: content/browser/devtools/devtools_session.cc

Issue 2522583002: Roll third_party/inspector_protocol to 4ad35c45aca9834b67ec2cb152c816ea1b7ceb48 (Closed)
Patch Set: removed redundant new line Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698