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

Unified Diff: chrome/browser/extensions/api/debugger/debugger_api.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/browser/extensions/api/debugger/debugger_api.cc
diff --git a/chrome/browser/extensions/api/debugger/debugger_api.cc b/chrome/browser/extensions/api/debugger/debugger_api.cc
index 14638efb2966e593f6271a90237775ebb14386e3..27623d9b3f8ed51b76a2741187e5892a6eacc099 100644
--- a/chrome/browser/extensions/api/debugger/debugger_api.cc
+++ b/chrome/browser/extensions/api/debugger/debugger_api.cc
@@ -385,7 +385,7 @@ void ExtensionDevToolsClientHost::SendMessageToBackend(
}
std::string json_args;
- base::JSONWriter::Write(&protocol_request, &json_args);
+ base::JSONWriter::Write(protocol_request, &json_args);
agent_host_->DispatchProtocolMessage(json_args);
}
@@ -666,7 +666,7 @@ void DebuggerSendCommandFunction::SendResponseBody(
base::DictionaryValue* response) {
base::Value* error_body;
if (response->Get("error", &error_body)) {
- base::JSONWriter::Write(error_body, &error_);
+ base::JSONWriter::Write(*error_body, &error_);
SendResponse(false);
return;
}

Powered by Google App Engine
This is Rietveld 408576698