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

Unified Diff: chrome/browser/extensions/api/system_indicator/system_indicator_manager_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/extensions/api/system_indicator/system_indicator_manager_factory.cc
diff --git a/chrome/browser/extensions/api/system_indicator/system_indicator_manager_factory.cc b/chrome/browser/extensions/api/system_indicator/system_indicator_manager_factory.cc
index cf3fcc580be33cb55d24b0dab71688704de2f6af..76e74ef97651413214b468756737af09b184ede3 100644
--- a/chrome/browser/extensions/api/system_indicator/system_indicator_manager_factory.cc
+++ b/chrome/browser/extensions/api/system_indicator/system_indicator_manager_factory.cc
@@ -16,7 +16,7 @@ namespace extensions {
SystemIndicatorManager* SystemIndicatorManagerFactory::GetForProfile(
Profile* profile) {
return static_cast<SystemIndicatorManager*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -25,14 +25,16 @@ SystemIndicatorManagerFactory* SystemIndicatorManagerFactory::GetInstance() {
}
SystemIndicatorManagerFactory::SystemIndicatorManagerFactory()
- : ProfileKeyedServiceFactory("SystemIndicatorManager",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "SystemIndicatorManager",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(ExtensionSystemFactory::GetInstance());
}
SystemIndicatorManagerFactory::~SystemIndicatorManagerFactory() {}
-ProfileKeyedService* SystemIndicatorManagerFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService*
+SystemIndicatorManagerFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
StatusTray* status_tray = g_browser_process->status_tray();

Powered by Google App Engine
This is Rietveld 408576698