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* |