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

Unified Diff: chrome/browser/ui/global_error/global_error_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/ui/global_error/global_error_service_factory.cc
diff --git a/chrome/browser/ui/global_error/global_error_service_factory.cc b/chrome/browser/ui/global_error/global_error_service_factory.cc
index 7c78f6427cffc7ecf8f14d29e63d4efdeb6d8d92..cc4be645d1d7be6e05c7f63e554c8ecf32c8cdbe 100644
--- a/chrome/browser/ui/global_error/global_error_service_factory.cc
+++ b/chrome/browser/ui/global_error/global_error_service_factory.cc
@@ -12,7 +12,7 @@
// static
GlobalErrorService* GlobalErrorServiceFactory::GetForProfile(Profile* profile) {
return static_cast<GlobalErrorService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -21,14 +21,15 @@ GlobalErrorServiceFactory* GlobalErrorServiceFactory::GetInstance() {
}
GlobalErrorServiceFactory::GlobalErrorServiceFactory()
- : ProfileKeyedServiceFactory("GlobalErrorService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "GlobalErrorService",
+ BrowserContextDependencyManager::GetInstance()) {
}
GlobalErrorServiceFactory::~GlobalErrorServiceFactory() {
}
-ProfileKeyedService* GlobalErrorServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* GlobalErrorServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new GlobalErrorService(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698