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

Unified Diff: chrome/browser/usb/usb_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/usb/usb_service_factory.cc
diff --git a/chrome/browser/usb/usb_service_factory.cc b/chrome/browser/usb/usb_service_factory.cc
index cd91233ea8dfac12472e543c14ce4109c782a1e8..b2622c9d5adbf69e0c3b79443eb68fb0b8c73f55 100644
--- a/chrome/browser/usb/usb_service_factory.cc
+++ b/chrome/browser/usb/usb_service_factory.cc
@@ -15,15 +15,15 @@ UsbServiceFactory* UsbServiceFactory::GetInstance() {
UsbService* UsbServiceFactory::GetForProfile(Profile* profile) {
return static_cast<UsbService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
-UsbServiceFactory::UsbServiceFactory() : ProfileKeyedServiceFactory(
- "UsbService", ProfileDependencyManager::GetInstance()) {}
+UsbServiceFactory::UsbServiceFactory() : BrowserContextKeyedServiceFactory(
+ "UsbService", BrowserContextDependencyManager::GetInstance()) {}
UsbServiceFactory::~UsbServiceFactory() {}
-ProfileKeyedService* UsbServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* UsbServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new UsbService();
}

Powered by Google App Engine
This is Rietveld 408576698