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 dc5ab53d2d23a28d28d3f48d860606d9e8fd2424..28bab7806b7d53904d49ea67cfdb2bd31b98b7fc 100644 |
--- a/chrome/browser/download/download_service_factory.cc |
+++ b/chrome/browser/download/download_service_factory.cc |
@@ -13,7 +13,7 @@ |
DownloadService* DownloadServiceFactory::GetForProfile( |
Profile* profile) { |
return static_cast<DownloadService*>( |
- GetInstance()->GetServiceForProfile(profile, true)); |
+ GetInstance()->GetServiceForBrowserContext(profile, true)); |
} |
// static |
@@ -22,15 +22,16 @@ DownloadServiceFactory* DownloadServiceFactory::GetInstance() { |
} |
DownloadServiceFactory::DownloadServiceFactory() |
- : ProfileKeyedServiceFactory("DownloadService", |
- ProfileDependencyManager::GetInstance()) { |
+ : BrowserContextKeyedServiceFactory( |
+ "DownloadService", |
+ BrowserContextDependencyManager::GetInstance()) { |
DependsOn(HistoryServiceFactory::GetInstance()); |
} |
DownloadServiceFactory::~DownloadServiceFactory() { |
} |
-ProfileKeyedService* DownloadServiceFactory::BuildServiceInstanceFor( |
+BrowserContextKeyedService* DownloadServiceFactory::BuildServiceInstanceFor( |
content::BrowserContext* profile) const { |
DownloadService* service = |
new DownloadService(static_cast<Profile*>(profile)); |