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

Unified Diff: components/policy/core/common/remote_commands/test_remote_command_job.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/remote_commands/test_remote_command_job.cc
diff --git a/components/policy/core/common/remote_commands/test_remote_command_job.cc b/components/policy/core/common/remote_commands/test_remote_command_job.cc
index 6e2d4710f6aced023954a6c70464a309cc7ede44..6b35cde367acb17dcb5ee73e2430d0e42ac76d9f 100644
--- a/components/policy/core/common/remote_commands/test_remote_command_job.cc
+++ b/components/policy/core/common/remote_commands/test_remote_command_job.cc
@@ -39,7 +39,7 @@ class TestRemoteCommandJob::EchoPayload
};
std::unique_ptr<std::string> TestRemoteCommandJob::EchoPayload::Serialize() {
- return base::WrapUnique(new std::string(payload_));
+ return base::MakeUnique<std::string>(payload_);
}
TestRemoteCommandJob::TestRemoteCommandJob(bool succeed,
« no previous file with comments | « components/policy/core/common/registry_dict_win_unittest.cc ('k') | components/policy/core/common/schema_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698