Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index d268b8792f5d8b9f37fb086e1b7186ae1c72c973..8724a183d8deda07417e4755d2b5bc6f37afed62 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -664,11 +664,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* |