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

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

Issue 2834073003: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in chrome (Closed)
Patch Set: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in chrome Created 3 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/cloud/external_policy_data_fetcher_unittest.cc
diff --git a/components/policy/core/common/cloud/external_policy_data_fetcher_unittest.cc b/components/policy/core/common/cloud/external_policy_data_fetcher_unittest.cc
index ab659582c24a9a2b4c6b4aa888f119460cbef559..4a2085ac593ead73ffa4d196328e356df24bb03b 100644
--- a/components/policy/core/common/cloud/external_policy_data_fetcher_unittest.cc
+++ b/components/policy/core/common/cloud/external_policy_data_fetcher_unittest.cc
@@ -5,6 +5,7 @@
#include "components/policy/core/common/cloud/external_policy_data_fetcher.h"
#include <stdint.h>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -111,7 +112,7 @@ void ExternalPolicyDataFetcherTest::OnJobFinished(
++callback_count_;
callback_job_index_ = job_index;
callback_result_ = result;
- callback_data_.reset(data.release());
+ callback_data_ = std::move(data);
jobs_.erase(job_index);
}

Powered by Google App Engine
This is Rietveld 408576698