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

Unified Diff: components/safe_json/safe_json_parser_impl.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
« no previous file with comments | « components/safe_browsing_db/prefix_set.cc ('k') | components/safe_json/safe_json_parser_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_json/safe_json_parser_impl.cc
diff --git a/components/safe_json/safe_json_parser_impl.cc b/components/safe_json/safe_json_parser_impl.cc
index af79e94833f82948cb43d7a395852eef67965a07..63cabaf90cecd501c5d934f4e27c552c171cb498 100644
--- a/components/safe_json/safe_json_parser_impl.cc
+++ b/components/safe_json/safe_json_parser_impl.cc
@@ -4,6 +4,8 @@
#include "components/safe_json/safe_json_parser_impl.h"
+#include <utility>
+
#include "base/sequenced_task_runner.h"
#include "base/strings/utf_string_conversions.h"
#include "base/thread_task_runner_handle.h"
@@ -68,7 +70,7 @@ void SafeJsonParserImpl::ReportResultsOnOriginThread() {
DCHECK(caller_task_runner_->RunsTasksOnCurrentThread());
if (error_.empty() && parsed_json_) {
if (!success_callback_.is_null())
- success_callback_.Run(parsed_json_.Pass());
+ success_callback_.Run(std::move(parsed_json_));
} else {
if (!error_callback_.is_null())
error_callback_.Run(error_);
« no previous file with comments | « components/safe_browsing_db/prefix_set.cc ('k') | components/safe_json/safe_json_parser_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698