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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1417173010: Adding <keygen> Content Setting (core) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing ContentSetting Register. Created 5 years, 1 month 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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 7035feebc16ad9f8031c245a43d5ad7505864cdc..dd8724d2bf8d583a243a2ef823ee095be7b56c04 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1918,6 +1918,17 @@ bool ChromeContentBrowserClient::AllowWebRTCIdentityCache(
}
#endif // defined(ENABLE_WEBRTC)
+bool ChromeContentBrowserClient::AllowKeygen(
+ const GURL& url,
+ content::ResourceContext* context) {
+ HostContentSettingsMap* content_settings =
+ ProfileIOData::FromResourceContext(context)->GetHostContentSettingsMap();
+
+ return content_settings->GetContentSetting(
+ url, url, CONTENT_SETTINGS_TYPE_KEYGEN, std::string()) ==
+ CONTENT_SETTING_ALLOW;
+}
+
net::URLRequestContext*
ChromeContentBrowserClient::OverrideRequestContextForURL(
const GURL& url, content::ResourceContext* context) {
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/content_settings/host_content_settings_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698