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

Unified Diff: chrome/browser/extensions/api/sessions/sessions_apitest.cc

Issue 2257113002: 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/extensions/api/sessions/sessions_apitest.cc
diff --git a/chrome/browser/extensions/api/sessions/sessions_apitest.cc b/chrome/browser/extensions/api/sessions/sessions_apitest.cc
index 05e190dcfadc97b53e7b53a34ffc7e95606f0831..600f0296e544634c91927c58bb6f8693ea6ac48a 100644
--- a/chrome/browser/extensions/api/sessions/sessions_apitest.cc
+++ b/chrome/browser/extensions/api/sessions/sessions_apitest.cc
@@ -194,8 +194,7 @@ std::unique_ptr<KeyedService> ExtensionSessionsTest::BuildProfileSyncService(
Profile* profile = static_cast<Profile*>(context);
ProfileSyncServiceMock* sync_service =
new ProfileSyncServiceMock(CreateProfileSyncServiceParamsForTest(
- base::WrapUnique(new browser_sync::ChromeSyncClient(profile)),
- profile));
+ base::MakeUnique<browser_sync::ChromeSyncClient>(profile), profile));
static_cast<browser_sync::ChromeSyncClient*>(sync_service->GetSyncClient())
->SetSyncApiComponentFactoryForTesting(std::move(factory));
return base::WrapUnique(sync_service);

Powered by Google App Engine
This is Rietveld 408576698