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

Unified Diff: chrome/browser/download/download_ui_controller_unittest.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky 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/download/download_ui_controller_unittest.cc
diff --git a/chrome/browser/download/download_ui_controller_unittest.cc b/chrome/browser/download/download_ui_controller_unittest.cc
index d6f9a5cc730d2b5e0cadc060eb3f737b0650a528..cf06d70522bf7df6eae8a443017287d0f2547d7f 100644
--- a/chrome/browser/download/download_ui_controller_unittest.cc
+++ b/chrome/browser/download/download_ui_controller_unittest.cc
@@ -155,8 +155,8 @@ class DownloadUIControllerTest : public ChromeRenderViewHostTestHarness {
std::unique_ptr<KeyedService>
DownloadUIControllerTest::TestingDownloadServiceFactory(
content::BrowserContext* browser_context) {
- return base::WrapUnique(
- new TestDownloadService(Profile::FromBrowserContext(browser_context)));
+ return base::MakeUnique<TestDownloadService>(
+ Profile::FromBrowserContext(browser_context));
}
DownloadUIControllerTest::DownloadUIControllerTest()
« no previous file with comments | « chrome/browser/download/download_dir_policy_handler_unittest.cc ('k') | chrome/browser/engagement/site_engagement_score.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698