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

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: Fix Android compile error. Add GetInstance() call to ProfileDependencyManager. Created 8 years 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 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*
« chrome/browser/profiles/profile_impl.cc ('K') | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698