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

Unified Diff: components/safe_json/safe_json_parser_android.cc

Issue 1550383002: Convert Pass()→std::move() in //components (Android edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_android.cc
diff --git a/components/safe_json/safe_json_parser_android.cc b/components/safe_json/safe_json_parser_android.cc
index 9266ec702f6797fa60d57e7dbc68b547dcefec01..3bfe628da6f8b08241b8577bb6ade5706644d3b5 100644
--- a/components/safe_json/safe_json_parser_android.cc
+++ b/components/safe_json/safe_json_parser_android.cc
@@ -4,6 +4,8 @@
#include "components/safe_json/safe_json_parser_android.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/json/json_reader.h"
#include "base/values.h"
@@ -45,7 +47,7 @@ void SafeJsonParserAndroid::OnSanitizationSuccess(
return;
}
- success_callback_.Run(value.Pass());
+ success_callback_.Run(std::move(value));
}
void SafeJsonParserAndroid::OnSanitizationError(const std::string& error) {
« no previous file with comments | « components/policy/core/browser/android/policy_converter.cc ('k') | components/sessions/core/in_memory_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698