[Background Sync] Remove use of new.

We now avoid using new in code. Use make_unique instead.

Change-Id: I354780cd9a368f8137f031a1682ee0a5f65c9422
Reviewed-on: https://chromium-review.googlesource.com/c/1466990
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Rayan Kanso <rayankans@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Commit-Queue: Mugdha Lakhani <nator@chromium.org>
Cr-Commit-Position: refs/heads/master@{#632580}
diff --git a/content/test/test_background_sync_context.cc b/content/test/test_background_sync_context.cc
index 8b8e56a..82d4029 100644
--- a/content/test/test_background_sync_context.cc
+++ b/content/test/test_background_sync_context.cc
@@ -4,7 +4,8 @@
 
 #include "content/test/test_background_sync_context.h"
 
-#include "base/memory/ptr_util.h"
+#include <memory>
+
 #include "content/browser/service_worker/service_worker_context_wrapper.h"
 #include "content/public/browser/browser_thread.h"
 #include "content/test/test_background_sync_manager.h"
@@ -16,9 +17,8 @@
   DCHECK_CURRENTLY_ON(BrowserThread::IO);
   DCHECK(!background_sync_manager());
 
-  TestBackgroundSyncManager* manager = new TestBackgroundSyncManager(context);
   set_background_sync_manager_for_testing(
-      base::WrapUnique<BackgroundSyncManager>(manager));
+      std::make_unique<TestBackgroundSyncManager>(context));
 }
 
 }  // namespace content