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

Unified Diff: components/invalidation/impl/gcm_invalidation_bridge.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/gcm_invalidation_bridge.cc
diff --git a/components/invalidation/impl/gcm_invalidation_bridge.cc b/components/invalidation/impl/gcm_invalidation_bridge.cc
index f1e23835881e83a1e5d1425d26c09815a4de2da2..09aca1e3991a2ec7e6b8a5ab57de62f236d9a7b1 100644
--- a/components/invalidation/impl/gcm_invalidation_bridge.cc
+++ b/components/invalidation/impl/gcm_invalidation_bridge.cc
@@ -176,8 +176,8 @@ GCMInvalidationBridge::~GCMInvalidationBridge() {
std::unique_ptr<syncer::GCMNetworkChannelDelegate>
GCMInvalidationBridge::CreateDelegate() {
DCHECK(CalledOnValidThread());
- return base::WrapUnique(new Core(weak_factory_.GetWeakPtr(),
- base::ThreadTaskRunnerHandle::Get()));
+ return base::MakeUnique<Core>(weak_factory_.GetWeakPtr(),
+ base::ThreadTaskRunnerHandle::Get());
}
void GCMInvalidationBridge::CoreInitializationDone(
« no previous file with comments | « components/history/core/test/history_service_test_util.cc ('k') | components/invalidation/impl/sync_system_resources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698