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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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_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));

Powered by Google App Engine
This is Rietveld 408576698