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

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

Issue 1412523003: Adding <keygen> Content Setting (UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing page action. Created 5 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/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 671666c4f5bca883b248ee59a0aec74f12519133..92b1cbe6c69193857e0a795a4341bf52765b27bb 100644
--- a/chrome/browser/content_settings/tab_specific_content_settings.cc
+++ b/chrome/browser/content_settings/tab_specific_content_settings.cc
@@ -333,6 +333,12 @@ void TabSpecificContentSettings::OnContentBlockedWithDetail(
}
#endif
+ if (type == CONTENT_SETTINGS_TYPE_KEYGEN) {
+ HostContentSettingsMap* map = HostContentSettingsMapFactory::GetForProfile(
+ Profile::FromBrowserContext(web_contents()->GetBrowserContext()));
+ map->SetShouldDisplay(web_contents()->GetLastCommittedURL(), type);
+ }
+
if (type == CONTENT_SETTINGS_TYPE_PLUGINS && !details.empty() &&
std::find(blocked_plugin_names_.begin(), blocked_plugin_names_.end(),
details) == blocked_plugin_names_.end()) {

Powered by Google App Engine
This is Rietveld 408576698