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

Unified Diff: components/sync/core/shared_model_type_processor.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/core/shared_model_type_processor.cc
diff --git a/components/sync/core/shared_model_type_processor.cc b/components/sync/core/shared_model_type_processor.cc
index 06125bbb1affc2872f724c3e38fb6363e5f1d90e..4995f1ed027d17d86f26fd995dc73a08e4bd3059 100644
--- a/components/sync/core/shared_model_type_processor.cc
+++ b/components/sync/core/shared_model_type_processor.cc
@@ -172,9 +172,10 @@ void SharedModelTypeProcessor::ConnectIfReady() {
if (!start_error_.IsSet()) {
activation_context = base::WrapUnique(new ActivationContext);
activation_context->data_type_state = data_type_state_;
- activation_context->type_processor = base::WrapUnique(
- new ModelTypeProcessorProxy(weak_ptr_factory_.GetWeakPtr(),
- base::ThreadTaskRunnerHandle::Get()));
+ activation_context->type_processor =
+ base::MakeUnique<ModelTypeProcessorProxy>(
+ weak_ptr_factory_.GetWeakPtr(),
+ base::ThreadTaskRunnerHandle::Get());
}
start_callback_.Run(start_error_, std::move(activation_context));

Powered by Google App Engine
This is Rietveld 408576698