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

Unified Diff: content/browser/background_sync/background_sync_manager.cc

Issue 2256173002: 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: content/browser/background_sync/background_sync_manager.cc
diff --git a/content/browser/background_sync/background_sync_manager.cc b/content/browser/background_sync/background_sync_manager.cc
index f9d819a709c407e8509b7ea8b200b9cb4beb5ee2..44b3aa5099d9e29e0dd70f6b9bc5b7bbacd6d6dc 100644
--- a/content/browser/background_sync/background_sync_manager.cc
+++ b/content/browser/background_sync/background_sync_manager.cc
@@ -528,8 +528,8 @@ void BackgroundSyncManager::RegisterDidAskForPermission(
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(callback, BACKGROUND_SYNC_STATUS_OK,
- base::Passed(base::WrapUnique(new BackgroundSyncRegistration(
- *existing_registration)))));
+ base::Passed(base::MakeUnique<BackgroundSyncRegistration>(
+ *existing_registration))));
return;
}
@@ -700,8 +700,8 @@ void BackgroundSyncManager::RegisterDidStore(
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(callback, BACKGROUND_SYNC_STATUS_OK,
- base::Passed(base::WrapUnique(
- new BackgroundSyncRegistration(new_registration)))));
+ base::Passed(base::MakeUnique<BackgroundSyncRegistration>(
+ new_registration))));
}
void BackgroundSyncManager::RemoveActiveRegistration(int64_t sw_registration_id,

Powered by Google App Engine
This is Rietveld 408576698