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

Unified Diff: components/test_runner/web_content_settings.cc

Issue 1417033010: Adding <keygen> Content Setting (Blink) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keygen_core
Patch Set: Clean up code. 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: components/test_runner/web_content_settings.cc
diff --git a/components/test_runner/web_content_settings.cc b/components/test_runner/web_content_settings.cc
index 2bf83daebd60e9d849644db74d27bea639eed8cb..afb24cea066c6ee555dc042833c4670c8f9e6030 100644
--- a/components/test_runner/web_content_settings.cc
+++ b/components/test_runner/web_content_settings.cc
@@ -53,6 +53,10 @@ bool WebContentSettings::allowStorage(bool) {
return storage_allowed_;
}
+bool WebContentSettings::allowKeygen() {
+ return keygen_allowed_;
+}
+
bool WebContentSettings::allowPlugins(bool enabled_per_settings) {
return enabled_per_settings && plugins_allowed_;
}
@@ -87,6 +91,10 @@ void WebContentSettings::SetStorageAllowed(bool storage_allowed) {
storage_allowed_ = storage_allowed;
}
+void WebContentSettings::SetKeygenAllowed(bool keygen_allowed) {
+ keygen_allowed_ = keygen_allowed;
+}
+
void WebContentSettings::SetPluginsAllowed(bool plugins_allowed) {
plugins_allowed_ = plugins_allowed;
}
@@ -113,6 +121,7 @@ void WebContentSettings::Reset() {
media_allowed_ = true;
scripts_allowed_ = true;
storage_allowed_ = true;
+ keygen_allowed_ = true;
plugins_allowed_ = true;
displaying_insecure_content_allowed_ = false;
running_insecure_content_allowed_ = false;

Powered by Google App Engine
This is Rietveld 408576698