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 d29878d44db720204023bca7df28424f74e78f8d..015f93a26118beb9fa8fdea3733b535f8ad385f7 100644 |
--- a/chrome/browser/download/download_ui_controller_unittest.cc |
+++ b/chrome/browser/download/download_ui_controller_unittest.cc |
@@ -135,7 +135,7 @@ class DownloadUIControllerTest : public ChromeRenderViewHostTestHarness { |
}; |
// Constructs and returns a TestDownloadService. |
- static KeyedService* TestingDownloadServiceFactory( |
+ static scoped_ptr<KeyedService> TestingDownloadServiceFactory( |
content::BrowserContext* browser_context); |
scoped_ptr<MockDownloadManager> manager_; |
@@ -148,9 +148,11 @@ class DownloadUIControllerTest : public ChromeRenderViewHostTestHarness { |
}; |
// static |
-KeyedService* DownloadUIControllerTest::TestingDownloadServiceFactory( |
+scoped_ptr<KeyedService> |
+DownloadUIControllerTest::TestingDownloadServiceFactory( |
content::BrowserContext* browser_context) { |
- return new TestDownloadService(Profile::FromBrowserContext(browser_context)); |
+ return make_scoped_ptr( |
+ new TestDownloadService(Profile::FromBrowserContext(browser_context))); |
} |
DownloadUIControllerTest::DownloadUIControllerTest() |