Chromium Code Reviews| Index: chrome/test/base/testing_profile.cc |
| diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
| index 1d2a6f66eb25edc23717a97717f0028336d96de8..77dee9ec93bec2662a386a986150958c20da53fc 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); |
|
rpetterson
2012/12/18 21:22:17
Normally GetForProfile will return NULL by default
John Knottenbelt
2012/12/19 16:01:09
I am not sure about the relationship between the T
rpetterson
2012/12/19 22:22:44
Apologies -- I was confusing TestingProfile and In
|
| } |
| content::SpeechRecognitionPreferences* |