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

Unified Diff: components/invalidation/impl/sync_system_resources.cc

Issue 2257793002: 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/invalidation/impl/sync_system_resources.cc
diff --git a/components/invalidation/impl/sync_system_resources.cc b/components/invalidation/impl/sync_system_resources.cc
index 089f7a15c9bca76e37d53b6e939153706366471b..f4f04e0f2605fa0b8032661901a9ca4ae17885c0 100644
--- a/components/invalidation/impl/sync_system_resources.cc
+++ b/components/invalidation/impl/sync_system_resources.cc
@@ -170,14 +170,14 @@ std::unique_ptr<SyncNetworkChannel> SyncNetworkChannel::CreatePushClientChannel(
const notifier::NotifierOptions& notifier_options) {
std::unique_ptr<notifier::PushClient> push_client(
notifier::PushClient::CreateDefaultOnIOThread(notifier_options));
- return base::WrapUnique(new PushClientChannel(std::move(push_client)));
+ return base::MakeUnique<PushClientChannel>(std::move(push_client));
}
std::unique_ptr<SyncNetworkChannel> SyncNetworkChannel::CreateGCMNetworkChannel(
scoped_refptr<net::URLRequestContextGetter> request_context_getter,
std::unique_ptr<GCMNetworkChannelDelegate> delegate) {
- return base::WrapUnique(
- new GCMNetworkChannel(request_context_getter, std::move(delegate)));
+ return base::MakeUnique<GCMNetworkChannel>(request_context_getter,
+ std::move(delegate));
}
void SyncNetworkChannel::NotifyNetworkStatusChange(bool online) {

Powered by Google App Engine
This is Rietveld 408576698