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

Unified Diff: chrome/test/chromedriver/commands.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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: chrome/test/chromedriver/commands.cc
diff --git a/chrome/test/chromedriver/commands.cc b/chrome/test/chromedriver/commands.cc
index 709f362a3586a1ea4d5d1e0f2c5557e1426382a6..5205b128665790cdc96f51aae0d3eec4a6b5dca3 100644
--- a/chrome/test/chromedriver/commands.cc
+++ b/chrome/test/chromedriver/commands.cc
@@ -113,7 +113,7 @@ void ExecuteGetSessions(const Command& session_capabilities_command,
scoped_ptr<base::ListValue> session_list(new base::ListValue());
if (!get_remaining_count) {
- callback.Run(Status(kOk), session_list.Pass(), session_id);
+ callback.Run(Status(kOk), std::move(session_list), session_id);
return;
}
@@ -135,7 +135,7 @@ void ExecuteGetSessions(const Command& session_capabilities_command,
base::MessageLoop::current()->SetNestableTasksAllowed(true);
run_loop.Run();
- callback.Run(Status(kOk), session_list.Pass(), session_id);
+ callback.Run(Status(kOk), std::move(session_list), session_id);
}
namespace {

Powered by Google App Engine
This is Rietveld 408576698