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

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

Issue 1432573002: Adding <keygen> Content Setting (Android UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keygen_ui
Patch Set: Fix rebase across multiple ancestors. 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..bdbf62920f7dde364eac42bce50fdb9d88c146ed 100644
--- a/chrome/browser/content_settings/tab_specific_content_settings.cc
+++ b/chrome/browser/content_settings/tab_specific_content_settings.cc
@@ -331,6 +331,13 @@ void TabSpecificContentSettings::OnContentBlockedWithDetail(
status.blocked = false;
status.blockage_indicated_to_user = false;
}
+
+ if (type == CONTENT_SETTINGS_TYPE_KEYGEN) {
+ HostContentSettingsMap* map = HostContentSettingsMapFactory::GetForProfile(
+ Profile::FromBrowserContext(web_contents()->GetBrowserContext()));
+ GURL url = web_contents()->GetLastCommittedURL();
+ map->SetNarrowestContentSetting(url, url, type, CONTENT_SETTING_ASK);
+ }
#endif
if (type == CONTENT_SETTINGS_TYPE_PLUGINS && !details.empty() &&

Powered by Google App Engine
This is Rietveld 408576698