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

Unified Diff: chrome/browser/extensions/extension_gcm_app_handler_unittest.cc

Issue 2257113002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/extension_gcm_app_handler_unittest.cc
diff --git a/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc b/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc
index 3fec12467cae1d9cc23a061f3ec83d5629a44064..d5d119e46f7330591f2faa1190dc8006ebc87c01 100644
--- a/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc
+++ b/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc
@@ -208,7 +208,7 @@ class ExtensionGCMAppHandlerTest : public testing::Test {
worker_pool->GetSequencedTaskRunnerWithShutdownBehavior(
worker_pool->GetSequenceToken(),
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN));
- return base::WrapUnique(new gcm::GCMProfileService(
+ return base::MakeUnique<gcm::GCMProfileService>(
profile->GetPrefs(), profile->GetPath(), profile->GetRequestContext(),
chrome::GetChannel(),
std::unique_ptr<ProfileIdentityProvider>(new ProfileIdentityProvider(
@@ -217,7 +217,7 @@ class ExtensionGCMAppHandlerTest : public testing::Test {
LoginUIServiceFactory::GetShowLoginPopupCallbackForProfile(
profile))),
base::WrapUnique(new gcm::FakeGCMClientFactory(ui_thread, io_thread)),
- ui_thread, io_thread, blocking_task_runner));
+ ui_thread, io_thread, blocking_task_runner);
}
ExtensionGCMAppHandlerTest()

Powered by Google App Engine
This is Rietveld 408576698