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. |