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

Unified Diff: components/sessions/core/base_session_service.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/sessions/core/base_session_service.cc
diff --git a/components/sessions/core/base_session_service.cc b/components/sessions/core/base_session_service.cc
index 8008532feba4d6d89e8d180d8a31afe3e39beab8..4f2d83972026f4bfebd68a2c672f9973b434a5cc 100644
--- a/components/sessions/core/base_session_service.cc
+++ b/components/sessions/core/base_session_service.cc
@@ -4,6 +4,8 @@
#include "components/sessions/core/base_session_service.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/single_thread_task_runner.h"
@@ -25,7 +27,7 @@ void RunIfNotCanceled(
ScopedVector<SessionCommand> commands) {
if (is_canceled.Run())
return;
- callback.Run(commands.Pass());
+ callback.Run(std::move(commands));
}
void PostOrRunInternalGetCommandsCallback(
@@ -33,7 +35,7 @@ void PostOrRunInternalGetCommandsCallback(
const BaseSessionService::GetCommandsCallback& callback,
ScopedVector<SessionCommand> commands) {
if (task_runner->RunsTasksOnCurrentThread()) {
- callback.Run(commands.Pass());
+ callback.Run(std::move(commands));
} else {
task_runner->PostTask(FROM_HERE,
base::Bind(callback, base::Passed(&commands)));

Powered by Google App Engine
This is Rietveld 408576698