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

Unified Diff: chrome/browser/ui/sync/one_click_signin_sync_starter_unittest.cc

Issue 2251263003: 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: chrome/browser/ui/sync/one_click_signin_sync_starter_unittest.cc
diff --git a/chrome/browser/ui/sync/one_click_signin_sync_starter_unittest.cc b/chrome/browser/ui/sync/one_click_signin_sync_starter_unittest.cc
index 6c59a7cc5bac3c374277114a348288d334496f84..081f573901214a0a571bc27ef9444c15f1d7cd47 100644
--- a/chrome/browser/ui/sync/one_click_signin_sync_starter_unittest.cc
+++ b/chrome/browser/ui/sync/one_click_signin_sync_starter_unittest.cc
@@ -97,11 +97,11 @@ class OneClickSigninSyncStarterTest : public ChromeRenderViewHostTestHarness {
static std::unique_ptr<KeyedService> BuildSigninManager(
content::BrowserContext* context) {
Profile* profile = static_cast<Profile*>(context);
- return base::WrapUnique(new FakeSigninManager(
+ return base::MakeUnique<FakeSigninManager>(
ChromeSigninClientFactory::GetForProfile(profile),
ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
AccountTrackerServiceFactory::GetForProfile(profile),
- GaiaCookieManagerServiceFactory::GetForProfile(profile)));
+ GaiaCookieManagerServiceFactory::GetForProfile(profile));
}
DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarterTest);

Powered by Google App Engine
This is Rietveld 408576698