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

Unified Diff: content/renderer/devtools/devtools_agent.cc

Issue 2891933004: Remove raw base::DictionaryValue::Set in //content (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « content/browser/webrtc/webrtc_internals.cc ('k') | content/renderer/media/peer_connection_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/devtools/devtools_agent.cc
diff --git a/content/renderer/devtools/devtools_agent.cc b/content/renderer/devtools/devtools_agent.cc
index b995c0d9d6fd83cd1e62e2382a1e3afe0f8bd9a3..ea469e132310ca4f7440e33da40cebf94c110018 100644
--- a/content/renderer/devtools/devtools_agent.cc
+++ b/content/renderer/devtools/devtools_agent.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <map>
+#include <utility>
#include "base/json/json_writer.h"
#include "base/lazy_instance.h"
@@ -341,8 +342,8 @@ void DevToolsAgent::GotManifest(int session_id,
result->SetString("url", url.Utf16());
if (!failed)
result->SetString("data", debug_info.raw_data);
- result->Set("errors", errors.release());
- response->Set("result", result.release());
+ result->Set("errors", std::move(errors));
+ response->Set("result", std::move(result));
std::string json_message;
base::JSONWriter::Write(*response, &json_message);
« no previous file with comments | « content/browser/webrtc/webrtc_internals.cc ('k') | content/renderer/media/peer_connection_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698