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

Unified Diff: components/safe_json/safe_json_parser_message_filter.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 5 years 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/safe_json/safe_json_parser_message_filter.cc
diff --git a/components/safe_json/safe_json_parser_message_filter.cc b/components/safe_json/safe_json_parser_message_filter.cc
index 8a377e748babffe56b9d1c6ad66bdb1c64f8b474..955e0b7485d0ef76e87429723b04a40172dbc091 100644
--- a/components/safe_json/safe_json_parser_message_filter.cc
+++ b/components/safe_json/safe_json_parser_message_filter.cc
@@ -4,6 +4,8 @@
#include "components/safe_json/safe_json_parser_message_filter.h"
+#include <utility>
+
#include "base/json/json_reader.h"
#include "base/values.h"
#include "components/safe_json/safe_json_parser_messages.h"
@@ -43,7 +45,7 @@ void SafeJsonParserMessageFilter::OnParseJSON(const std::string& json) {
json, base::JSON_PARSE_RFC, &error_code, &error);
if (value) {
base::ListValue wrapper;
- wrapper.Append(value.Pass());
+ wrapper.Append(std::move(value));
Send(new SafeJsonParserHostMsg_ParseJSON_Succeeded(wrapper));
} else {
Send(new SafeJsonParserHostMsg_ParseJSON_Failed(error));
« no previous file with comments | « components/safe_json/safe_json_parser_impl.cc ('k') | components/scheduler/base/task_queue_manager_delegate_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698