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

Unified Diff: chrome/browser/sessions/persistent_tab_restore_service_unittest.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Created 4 years, 3 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: chrome/browser/sessions/persistent_tab_restore_service_unittest.cc
diff --git a/chrome/browser/sessions/persistent_tab_restore_service_unittest.cc b/chrome/browser/sessions/persistent_tab_restore_service_unittest.cc
index 59c4148476019d36420aa9eb9e5c72608da2f5cb..215cd32b3235cdd5cfd7b8d9cb760ec1e441a74b 100644
--- a/chrome/browser/sessions/persistent_tab_restore_service_unittest.cc
+++ b/chrome/browser/sessions/persistent_tab_restore_service_unittest.cc
@@ -89,7 +89,7 @@ class PersistentTabRestoreServiceTest : public ChromeRenderViewHostTestHarness {
live_tab_ = base::WrapUnique(new sessions::ContentLiveTab(web_contents()));
time_factory_ = new PersistentTabRestoreTimeFactory();
service_.reset(new sessions::PersistentTabRestoreService(
- base::WrapUnique(new ChromeTabRestoreServiceClient(profile())),
+ base::MakeUnique<ChromeTabRestoreServiceClient>(profile()),
time_factory_));
}
@@ -129,7 +129,7 @@ class PersistentTabRestoreServiceTest : public ChromeRenderViewHostTestHarness {
content::RunAllBlockingPoolTasksUntilIdle();
service_.reset();
service_.reset(new sessions::PersistentTabRestoreService(
- base::WrapUnique(new ChromeTabRestoreServiceClient(profile())),
+ base::MakeUnique<ChromeTabRestoreServiceClient>(profile()),
time_factory_));
SynchronousLoadTabsFromLastSession();
}

Powered by Google App Engine
This is Rietveld 408576698