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

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

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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
« no previous file with comments | « chrome/browser/download/download_service_factory.h ('k') | chrome/browser/extensions/activity_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_service_factory.cc
diff --git a/chrome/browser/download/download_service_factory.cc b/chrome/browser/download/download_service_factory.cc
index 192db824b4fe5d95301f514a84595176162a1afc..f724992a098c1d9843296f78d614956aa68c3871 100644
--- a/chrome/browser/download/download_service_factory.cc
+++ b/chrome/browser/download/download_service_factory.cc
@@ -30,8 +30,9 @@ DownloadServiceFactory::~DownloadServiceFactory() {
}
ProfileKeyedService* DownloadServiceFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- DownloadService* service = new DownloadService(profile);
+ content::BrowserContext* profile) const {
+ DownloadService* service =
+ new DownloadService(static_cast<Profile*>(profile));
// No need for initialization; initialization can be done on first
// use of service.
« no previous file with comments | « chrome/browser/download/download_service_factory.h ('k') | chrome/browser/extensions/activity_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698