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

Unified Diff: components/policy/core/common/cloud/external_policy_data_fetcher.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/external_policy_data_fetcher.cc
diff --git a/components/policy/core/common/cloud/external_policy_data_fetcher.cc b/components/policy/core/common/cloud/external_policy_data_fetcher.cc
index 6c22b1ded25df48dfe72b585c8947fbcf21636ce..d085060d59bd900c7d4aeed3fb0f97771092bba4 100644
--- a/components/policy/core/common/cloud/external_policy_data_fetcher.cc
+++ b/components/policy/core/common/cloud/external_policy_data_fetcher.cc
@@ -4,6 +4,8 @@
#include "components/policy/core/common/cloud/external_policy_data_fetcher.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/location.h"
@@ -140,7 +142,7 @@ void ExternalPolicyDataFetcher::OnJobFinished(const FetchCallback& callback,
// finish before the cancellation has reached that thread.
return;
}
- callback.Run(result, data.Pass());
+ callback.Run(result, std::move(data));
jobs_.erase(it);
delete job;
}
@@ -241,7 +243,7 @@ void ExternalPolicyDataFetcherBackend::OnURLFetchComplete(
ExternalPolicyDataFetcher::Job* job = it->second;
delete it->first;
job_map_.erase(it);
- job->callback.Run(job, result, data.Pass());
+ job->callback.Run(job, result, std::move(data));
}
void ExternalPolicyDataFetcherBackend::OnURLFetchDownloadProgress(

Powered by Google App Engine
This is Rietveld 408576698