Followup to r85247 to address review comments about adding a way to get to ProfileIOData from content::ResourceClient.
Review URL: http://codereview.chromium.org/6973054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85273 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 56233bfc..9fe58e9 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -241,7 +241,7 @@
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
ProfileIOData* io_data =
reinterpret_cast<ProfileIOData*>(context.GetUserData(NULL));
- ContentSetting setting = io_data->host_content_settings_map()->
+ ContentSetting setting = io_data->GetHostContentSettingsMap()->
GetContentSetting(manifest_url, CONTENT_SETTINGS_TYPE_COOKIES, "");
DCHECK(setting != CONTENT_SETTING_DEFAULT);
return setting != CONTENT_SETTING_BLOCK;
@@ -258,7 +258,7 @@
bool allow = true;
ProfileIOData* io_data =
reinterpret_cast<ProfileIOData*>(context.GetUserData(NULL));
- if (io_data->host_content_settings_map()->BlockThirdPartyCookies()) {
+ if (io_data->GetHostContentSettingsMap()->BlockThirdPartyCookies()) {
bool strict = CommandLine::ForCurrentProcess()->HasSwitch(
switches::kBlockReadingThirdPartyCookies);
net::StaticCookiePolicy policy(strict ?
@@ -271,7 +271,7 @@
}
if (allow) {
- ContentSetting setting = io_data->host_content_settings_map()->
+ ContentSetting setting = io_data->GetHostContentSettingsMap()->
GetContentSetting(url, CONTENT_SETTINGS_TYPE_COOKIES, "");
allow = setting == CONTENT_SETTING_ALLOW ||
setting == CONTENT_SETTING_SESSION_ONLY;
@@ -297,7 +297,7 @@
bool allow = true;
ProfileIOData* io_data =
reinterpret_cast<ProfileIOData*>(context.GetUserData(NULL));
- if (io_data->host_content_settings_map()->BlockThirdPartyCookies()) {
+ if (io_data->GetHostContentSettingsMap()->BlockThirdPartyCookies()) {
bool strict = CommandLine::ForCurrentProcess()->HasSwitch(
switches::kBlockReadingThirdPartyCookies);
net::StaticCookiePolicy policy(strict ?
@@ -309,7 +309,7 @@
}
if (allow) {
- ContentSetting setting = io_data->host_content_settings_map()->
+ ContentSetting setting = io_data->GetHostContentSettingsMap()->
GetContentSetting(url, CONTENT_SETTINGS_TYPE_COOKIES, "");
if (setting == CONTENT_SETTING_SESSION_ONLY)