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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 7713034: HostContentSettingsMap refactoring. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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 2f3ecfae95ffdcf8e196491fdea607d5d91bca18..b8c690163a1a51d7705b1ce0844105880ca14ef4 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -628,9 +628,18 @@ HostContentSettingsMap* TestingProfile::GetHostContentSettingsMap() {
host_content_settings_map_ = new HostContentSettingsMap(
GetPrefs(), GetExtensionService(), false);
}
+ if (!cookie_content_settings_.get()) {
+ cookie_content_settings_ = new CookieContentSettings(
+ host_content_settings_map_.get(), GetPrefs(), false);
+ }
return host_content_settings_map_.get();
}
+CookieContentSettings* TestingProfile::GetCookieContentSettings() {
+ GetHostContentSettingsMap();
+ return cookie_content_settings_.get();
+}
+
GeolocationPermissionContext*
TestingProfile::GetGeolocationPermissionContext() {
if (!geolocation_permission_context_.get()) {
« 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