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

Unified Diff: chrome/browser/content_settings/tab_specific_content_settings.cc

Issue 7831075: Delegating the "are images allowed" decision to renderer. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebased. Created 9 years, 2 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/browser/content_settings/tab_specific_content_settings.cc
diff --git a/chrome/browser/content_settings/tab_specific_content_settings.cc b/chrome/browser/content_settings/tab_specific_content_settings.cc
index 3ba057cd91190ae43110086e92abe279b6de884b..8349a5a6ff77d73bea85c444bd852e57a988316d 100644
--- a/chrome/browser/content_settings/tab_specific_content_settings.cc
+++ b/chrome/browser/content_settings/tab_specific_content_settings.cc
@@ -488,6 +488,15 @@ void TabSpecificContentSettings::Observe(int type,
map->GetDefaultContentSettings()));
Send(new ChromeViewMsg_SetContentSettingsForCurrentURL(
entry_url, map->GetContentSettings(entry_url, entry_url)));
+ ContentSettingsForOneType settings;
+ map->GetSettingsForOneType(
+ CONTENT_SETTINGS_TYPE_IMAGES, "",
+ &settings);
+ settings.push_back(ContentSettingPatternSourceTuple(
+ ContentSettingsPattern::Wildcard(), ContentSettingsPattern::Wildcard(),
+ map->GetDefaultContentSetting(CONTENT_SETTINGS_TYPE_IMAGES), "",
+ false));
+ Send(new ChromeViewMsg_SetImageSettingRules(settings));
}
}

Powered by Google App Engine
This is Rietveld 408576698