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

Unified Diff: components/policy/core/common/cloud/cloud_policy_client_unittest.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/cloud_policy_client_unittest.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_client_unittest.cc b/components/policy/core/common/cloud/cloud_policy_client_unittest.cc
index 488f6c2311de1abcf88943ccee4bff8d2fbe4b78..0cea820f28d6955e4527288869691ca98d84448c 100644
--- a/components/policy/core/common/cloud/cloud_policy_client_unittest.cc
+++ b/components/policy/core/common/cloud/cloud_policy_client_unittest.cc
@@ -914,7 +914,7 @@ TEST_F(CloudPolicyClientTest, FetchRemoteCommands) {
const std::vector<em::RemoteCommandResult> command_results(
1, remote_command_request_.remote_command_request().command_results(0));
client_->FetchRemoteCommands(
- base::WrapUnique(new RemoteCommandJob::UniqueIDType(kLastCommandId)),
+ base::MakeUnique<RemoteCommandJob::UniqueIDType>(kLastCommandId),
command_results, callback);
EXPECT_EQ(DM_STATUS_SUCCESS, client_->status());

Powered by Google App Engine
This is Rietveld 408576698