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

Unified Diff: components/history/core/test/history_service_test_util.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/history/core/test/history_service_test_util.cc
diff --git a/components/history/core/test/history_service_test_util.cc b/components/history/core/test/history_service_test_util.cc
index 012fd9e65e34f2f3c2b078e25c05b49f12b97d94..e2d01eb59c1d9d595400a39a17b260b005c16a99 100644
--- a/components/history/core/test/history_service_test_util.cc
+++ b/components/history/core/test/history_service_test_util.cc
@@ -59,7 +59,7 @@ void BlockUntilHistoryProcessesPendingRequests(
base::RunLoop run_loop;
base::CancelableTaskTracker tracker;
history_service->ScheduleDBTask(
- base::WrapUnique(new QuitTask(run_loop.QuitClosure())), &tracker);
+ base::MakeUnique<QuitTask>(run_loop.QuitClosure()), &tracker);
run_loop.Run();
// Spin the runloop again until idle. The QuitTask above is destroyed via a
« no previous file with comments | « components/history/core/test/history_client_fake_bookmarks.cc ('k') | components/invalidation/impl/gcm_invalidation_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698