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

Unified Diff: components/policy/core/common/cloud/external_policy_data_fetcher.cc

Issue 2252353002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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/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 624c4e99235820c74bbf22c2688688d8974a8f97..919f563df12d6406ec4808d6039e057ad3d9c696 100644
--- a/components/policy/core/common/cloud/external_policy_data_fetcher.cc
+++ b/components/policy/core/common/cloud/external_policy_data_fetcher.cc
@@ -170,8 +170,8 @@ ExternalPolicyDataFetcherBackend::~ExternalPolicyDataFetcherBackend() {
std::unique_ptr<ExternalPolicyDataFetcher>
ExternalPolicyDataFetcherBackend::CreateFrontend(
scoped_refptr<base::SequencedTaskRunner> task_runner) {
- return base::WrapUnique(new ExternalPolicyDataFetcher(
- task_runner, io_task_runner_, weak_factory_.GetWeakPtr()));
+ return base::MakeUnique<ExternalPolicyDataFetcher>(
+ task_runner, io_task_runner_, weak_factory_.GetWeakPtr());
}
void ExternalPolicyDataFetcherBackend::StartJob(

Powered by Google App Engine
This is Rietveld 408576698