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

Unified Diff: components/error_page/renderer/net_error_helper_core.cc

Issue 2889163002: Remove raw DictionaryValue::Set in //components (Closed)
Patch Set: Nits 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
Index: components/error_page/renderer/net_error_helper_core.cc
diff --git a/components/error_page/renderer/net_error_helper_core.cc b/components/error_page/renderer/net_error_helper_core.cc
index 287cd84def6b5900c37cdcf0f84b5affeb397900..89dff32846682464d61004812ad965785faabd22 100644
--- a/components/error_page/renderer/net_error_helper_core.cc
+++ b/components/error_page/renderer/net_error_helper_core.cc
@@ -209,7 +209,7 @@ std::string CreateRequestBody(
base::DictionaryValue request_dict;
request_dict.SetString("method", method);
request_dict.SetString("apiVersion", "v1");
- request_dict.Set("params", params_dict.release());
+ request_dict.Set("params", std::move(params_dict));
std::string request_body;
bool success = base::JSONWriter::Write(request_dict, &request_body);
« no previous file with comments | « components/error_page/common/localized_error.cc ('k') | components/error_page/renderer/net_error_helper_core_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698