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

Unified Diff: chrome/test/base/testing_profile.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/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 0a4301b1ee2f1a1e6416ec4886af1aed9e4d220d..1a26e87032feea72487e81d5b57b8d49f8428a2b 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -668,11 +668,7 @@ HostContentSettingsMap* TestingProfile::GetHostContentSettingsMap() {
content::GeolocationPermissionContext*
TestingProfile::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