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

Unified Diff: chrome/test/chromedriver/chrome/dom_tracker.cc

Issue 1131113004: Convert JsonWriter::Write to taking a const ref for the in-param (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase Created 5 years, 7 months 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: chrome/test/chromedriver/chrome/dom_tracker.cc
diff --git a/chrome/test/chromedriver/chrome/dom_tracker.cc b/chrome/test/chromedriver/chrome/dom_tracker.cc
index 40f2f882b21150a4c53a4c2c534513f6309ed9a0..5f5fbcb5fa7f61e17493925cecad23c16de7297f 100644
--- a/chrome/test/chromedriver/chrome/dom_tracker.cc
+++ b/chrome/test/chromedriver/chrome/dom_tracker.cc
@@ -43,7 +43,7 @@ Status DomTracker::OnEvent(DevToolsClient* client,
if (!ProcessNodeList(nodes)) {
std::string json;
- base::JSONWriter::Write(nodes, &json);
+ base::JSONWriter::Write(*nodes, &json);
return Status(kUnknownError,
"DOM.setChildNodes has invalid 'nodes': " + json);
}
@@ -54,7 +54,7 @@ Status DomTracker::OnEvent(DevToolsClient* client,
if (!ProcessNode(node)) {
std::string json;
- base::JSONWriter::Write(node, &json);
+ base::JSONWriter::Write(*node, &json);
return Status(kUnknownError,
"DOM.childNodeInserted has invalid 'node': " + json);
}
« no previous file with comments | « chrome/test/chromedriver/chrome/devtools_client_impl_unittest.cc ('k') | chrome/test/chromedriver/chrome/frame_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698