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

Unified Diff: components/policy/core/common/remote_commands/remote_command_job.cc

Issue 1902633006: Convert //components/policy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use namespace alias Created 4 years, 8 months 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 64f897f13a8cf62536b4ff4b9d70f8e4522d567d..fb7caacebea062d8e59863335e5520c9626f61e5 100644
--- a/components/policy/core/common/remote_commands/remote_command_job.cc
+++ b/components/policy/core/common/remote_commands/remote_command_job.cc
@@ -115,7 +115,7 @@ bool RemoteCommandJob::IsExecutionFinished() const {
return status_ == SUCCEEDED || status_ == FAILED || status_ == TERMINATED;
}
-scoped_ptr<std::string> RemoteCommandJob::GetResultPayload() const {
+std::unique_ptr<std::string> RemoteCommandJob::GetResultPayload() const {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(status_ == SUCCEEDED || status_ == FAILED);
@@ -142,7 +142,7 @@ void RemoteCommandJob::TerminateImpl() {
void RemoteCommandJob::OnCommandExecutionFinishedWithResult(
bool succeeded,
- scoped_ptr<RemoteCommandJob::ResultPayload> result_payload) {
+ std::unique_ptr<RemoteCommandJob::ResultPayload> result_payload) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK_EQ(RUNNING, status_);
status_ = succeeded ? SUCCEEDED : FAILED;

Powered by Google App Engine
This is Rietveld 408576698