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

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

Issue 1165913002: [Cleanup] Used scoped pointers in KeyedServiceFactory's SetTestingFactory functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finish renaming profile -> context Created 5 years, 6 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 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()
« no previous file with comments | « chrome/browser/download/download_shelf_unittest.cc ('k') | chrome/browser/extensions/active_script_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698