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

Unified Diff: chrome/browser/geolocation/chrome_geolocation_permission_context_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/geolocation/chrome_geolocation_permission_context_factory.cc
diff --git a/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc b/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc
index 48ec4584d528ac8687fbfeb553024d4a4bdd1664..7611658d42d2cb3a87c8ec538c859f8dac9b8604 100644
--- a/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc
+++ b/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc
@@ -17,7 +17,7 @@
namespace {
-class Service : public ProfileKeyedService {
+class Service : public BrowserContextKeyedService {
public:
explicit Service(Profile* profile) {
#if defined(OS_ANDROID)
@@ -47,7 +47,7 @@ class Service : public ProfileKeyedService {
ChromeGeolocationPermissionContext*
ChromeGeolocationPermissionContextFactory::GetForProfile(Profile* profile) {
return static_cast<Service*>(
- GetInstance()->GetServiceForProfile(profile, true))->context();
+ GetInstance()->GetServiceForBrowserContext(profile, true))->context();
}
// static
@@ -58,16 +58,16 @@ ChromeGeolocationPermissionContextFactory::GetInstance() {
ChromeGeolocationPermissionContextFactory::
ChromeGeolocationPermissionContextFactory()
- : ProfileKeyedServiceFactory(
+ : BrowserContextKeyedServiceFactory(
"ChromeGeolocationPermissionContext",
- ProfileDependencyManager::GetInstance()) {
+ BrowserContextDependencyManager::GetInstance()) {
}
ChromeGeolocationPermissionContextFactory::
~ChromeGeolocationPermissionContextFactory() {
}
-ProfileKeyedService*
+BrowserContextKeyedService*
ChromeGeolocationPermissionContextFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new Service(static_cast<Profile*>(profile));

Powered by Google App Engine
This is Rietveld 408576698