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

Unified Diff: components/sync/engine_impl/model_type_worker_unittest.cc

Issue 2256733004: 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, 4 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/sync/engine_impl/model_type_worker_unittest.cc
diff --git a/components/sync/engine_impl/model_type_worker_unittest.cc b/components/sync/engine_impl/model_type_worker_unittest.cc
index f0ab457da8c88b9e9e840985bbdfa06a637d2a38..2e4886d15c83271e626ab8e53832eca2a44ccf52 100644
--- a/components/sync/engine_impl/model_type_worker_unittest.cc
+++ b/components/sync/engine_impl/model_type_worker_unittest.cc
@@ -349,7 +349,7 @@ void ModelTypeWorkerTest::NewForeignEncryptionKey() {
// Update the worker with the latest cryptographer.
if (worker_) {
worker_->UpdateCryptographer(
- base::WrapUnique(new Cryptographer(*cryptographer_)));
+ base::MakeUnique<Cryptographer>(*cryptographer_));
}
}
@@ -365,7 +365,7 @@ void ModelTypeWorkerTest::UpdateLocalCryptographer() {
// Update the worker with the latest cryptographer.
if (worker_) {
worker_->UpdateCryptographer(
- base::WrapUnique(new Cryptographer(*cryptographer_)));
+ base::MakeUnique<Cryptographer>(*cryptographer_));
}
}
« no previous file with comments | « components/sync/engine_impl/model_type_worker.cc ('k') | components/sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698