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

Unified Diff: components/policy/core/common/remote_commands/remote_command_job.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/policy/core/common/remote_commands/remote_command_job.cc
diff --git a/components/policy/core/common/remote_commands/remote_command_job.cc b/components/policy/core/common/remote_commands/remote_command_job.cc
index 37c8978d2ac915bb946e5acb25d16516cf77c493..64f897f13a8cf62536b4ff4b9d70f8e4522d567d 100644
--- a/components/policy/core/common/remote_commands/remote_command_job.cc
+++ b/components/policy/core/common/remote_commands/remote_command_job.cc
@@ -4,6 +4,8 @@
#include "components/policy/core/common/remote_commands/remote_command_job.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/logging.h"
@@ -120,7 +122,7 @@ scoped_ptr<std::string> RemoteCommandJob::GetResultPayload() const {
if (!result_payload_)
return nullptr;
- return result_payload_->Serialize().Pass();
+ return result_payload_->Serialize();
}
RemoteCommandJob::RemoteCommandJob()
@@ -145,7 +147,7 @@ void RemoteCommandJob::OnCommandExecutionFinishedWithResult(
DCHECK_EQ(RUNNING, status_);
status_ = succeeded ? SUCCEEDED : FAILED;
- result_payload_ = result_payload.Pass();
+ result_payload_ = std::move(result_payload);
if (!finished_callback_.is_null())
finished_callback_.Run();

Powered by Google App Engine
This is Rietveld 408576698