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

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: Fixed function case inconsistency. 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
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | public/web/WebSettings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSettingsImpl.cpp
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp
index 2aa04457026573513b33ad6fc98ad1b02933e87f..88901ae3149f3a23ba9466d28550cdab280f60f0 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::setCSPViolationReportsEnabled(bool enabled)
+{
+ m_settings->setCSPViolationReportsEnabled(enabled);
+}
+
+void WebSettingsImpl::setXSSViolationReportsEnabled(bool enabled)
+{
+ m_settings->setXSSViolationReportsEnabled(enabled);
+}
+
+
void WebSettingsImpl::setUnsafePluginPastingEnabled(bool enabled)
{
m_settings->setUnsafePluginPastingEnabled(enabled);
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698