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

Unified Diff: Source/web/WebSettingsImpl.cpp

Issue 591413003: Add a mechanism for users to opt-out of CSP & XSS violations reports. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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: Source/web/WebSettingsImpl.cpp
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp
index 2aa04457026573513b33ad6fc98ad1b02933e87f..e63101e225edbbc19a02298282456c64bfe0f924 100644
--- a/Source/web/WebSettingsImpl.cpp
+++ b/Source/web/WebSettingsImpl.cpp
@@ -366,6 +366,17 @@ void WebSettingsImpl::setXSSAuditorEnabled(bool enabled)
m_settings->setXSSAuditorEnabled(enabled);
}
+void WebSettingsImpl::setCSPViolationReportsUploadOptOut(bool enabled)
+{
+ m_settings->setCSPViolationReportsUploadOptOut(enabled);
+}
+
+void WebSettingsImpl::setXSSViolationReportsUploadOptOut(bool enabled)
+{
+ m_settings->setXSSViolationReportsUploadOptOut(enabled);
+}
+
+
void WebSettingsImpl::setUnsafePluginPastingEnabled(bool enabled)
{
m_settings->setUnsafePluginPastingEnabled(enabled);

Powered by Google App Engine
This is Rietveld 408576698