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

Unified Diff: content/browser/devtools/protocol/devtools_protocol_client.cc

Issue 642263004: [DevTools] Make generated protocol structs wrappers around DictionaryValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix that will be needed for browser protocol Created 6 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/protocol/devtools_protocol_client.cc
diff --git a/content/browser/devtools/protocol/devtools_protocol_client.cc b/content/browser/devtools/protocol/devtools_protocol_client.cc
index a34189e0efc17f98725ceca4d6796a80226c3dde..e959da9613620549f458d4b7bc63cf68a148e4a9 100644
--- a/content/browser/devtools/protocol/devtools_protocol_client.cc
+++ b/content/browser/devtools/protocol/devtools_protocol_client.cc
@@ -14,10 +14,11 @@ DevToolsProtocolClient::DevToolsProtocolClient(
DevToolsProtocolClient::~DevToolsProtocolClient() {
}
-void DevToolsProtocolClient::SendNotification(const std::string& method,
- base::DictionaryValue* params) {
+void DevToolsProtocolClient::SendNotification(
+ const std::string& method,
+ scoped_ptr<base::DictionaryValue> params) {
scoped_refptr<DevToolsProtocol::Notification> notification =
- new DevToolsProtocol::Notification(method, params);
+ new DevToolsProtocol::Notification(method, params.release());
SendRawMessage(notification->Serialize());
}

Powered by Google App Engine
This is Rietveld 408576698