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

Unified Diff: chrome/browser/extensions/api/downloads/downloads_api_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: 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/downloads/downloads_api_unittest.cc
diff --git a/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc b/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
index d45b936fe88fe23d899a4324fe8b08e724ffb3e9..1dfdc65b71ace841befe6ea2348ced65a41c9994 100644
--- a/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
@@ -109,8 +109,8 @@ class DownloadsApiUnitTest : public ExtensionApiUnittest {
std::unique_ptr<KeyedService>
DownloadsApiUnitTest::TestingDownloadServiceFactory(
content::BrowserContext* browser_context) {
- return base::WrapUnique(
- new TestDownloadService(Profile::FromBrowserContext(browser_context)));
+ return base::MakeUnique<TestDownloadService>(
+ Profile::FromBrowserContext(browser_context));
}
// Tests that Number/double properties in query are parsed correctly.

Powered by Google App Engine
This is Rietveld 408576698