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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 11587003: Make ChromeGeolocationPermissionContextFactory a ProfileKeyedServiceFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 12 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/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index a17151e65f6cd31b9876faf33957e847d43b4eec..6a6dd634a38434609229a4c608a49776143136ce 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -859,11 +859,7 @@ HostContentSettingsMap* ProfileImpl::GetHostContentSettingsMap() {
content::GeolocationPermissionContext*
ProfileImpl::GetGeolocationPermissionContext() {
- if (!geolocation_permission_context_.get()) {
- geolocation_permission_context_ =
- ChromeGeolocationPermissionContextFactory::Create(this);
- }
- return geolocation_permission_context_.get();
+ return ChromeGeolocationPermissionContextFactory::GetForProfile(this);
}
content::SpeechRecognitionPreferences*

Powered by Google App Engine
This is Rietveld 408576698