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

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: 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 4cabb1794cb88dae0234716a99777c24e0f7a9f3..5137a28368efb167a896fb3a3c38c5a9be5f461f 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_));
}
}

Powered by Google App Engine
This is Rietveld 408576698