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/cloud/cloud_policy_client.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/cloud/cloud_policy_client.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_client.cc b/components/policy/core/common/cloud/cloud_policy_client.cc
index fda118ba6a5c0f2b8ad67f5dbff4b3419dc3ba09..ccd6d0e43c113076416225b8a1ccbae775de0b50 100644
--- a/components/policy/core/common/cloud/cloud_policy_client.cc
+++ b/components/policy/core/common/cloud/cloud_policy_client.cc
@@ -4,6 +4,8 @@
#include "components/policy/core/common/cloud/cloud_policy_client.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/guid.h"
@@ -262,7 +264,7 @@ void CloudPolicyClient::UploadCertificate(
base::Bind(&CloudPolicyClient::OnCertificateUploadCompleted,
base::Unretained(this), request_job.get(), callback);
- request_jobs_.push_back(request_job.Pass());
+ request_jobs_.push_back(std::move(request_job));
request_jobs_.back()->Start(job_callback);
}
@@ -289,7 +291,7 @@ void CloudPolicyClient::UploadDeviceStatus(
base::Bind(&CloudPolicyClient::OnStatusUploadCompleted,
base::Unretained(this), request_job.get(), callback);
- request_jobs_.push_back(request_job.Pass());
+ request_jobs_.push_back(std::move(request_job));
request_jobs_.back()->Start(job_callback);
}
@@ -317,7 +319,7 @@ void CloudPolicyClient::FetchRemoteCommands(
base::Bind(&CloudPolicyClient::OnRemoteCommandsFetched,
base::Unretained(this), request_job.get(), callback);
- request_jobs_.push_back(request_job.Pass());
+ request_jobs_.push_back(std::move(request_job));
request_jobs_.back()->Start(job_callback);
}
@@ -342,7 +344,7 @@ void CloudPolicyClient::GetDeviceAttributeUpdatePermission(
base::Bind(&CloudPolicyClient::OnDeviceAttributeUpdatePermissionCompleted,
base::Unretained(this), request_job.get(), callback);
- request_jobs_.push_back(request_job.Pass());
+ request_jobs_.push_back(std::move(request_job));
request_jobs_.back()->Start(job_callback);
}
@@ -372,7 +374,7 @@ void CloudPolicyClient::UpdateDeviceAttributes(
base::Bind(&CloudPolicyClient::OnDeviceAttributeUpdated,
base::Unretained(this), request_job.get(), callback);
- request_jobs_.push_back(request_job.Pass());
+ request_jobs_.push_back(std::move(request_job));
request_jobs_.back()->Start(job_callback);
}
@@ -396,7 +398,7 @@ void CloudPolicyClient::UpdateGcmId(
base::Bind(&CloudPolicyClient::OnGcmIdUpdated, base::Unretained(this),
request_job.get(), callback);
- request_jobs_.push_back(request_job.Pass());
+ request_jobs_.push_back(std::move(request_job));
request_jobs_.back()->Start(job_callback);
}

Powered by Google App Engine
This is Rietveld 408576698