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

Unified Diff: Source/web/WebRuntimeFeatures.cpp

Issue 901843006: Allow the embedder to disable the Notification constructor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/platform/RuntimeEnabledFeatures.in ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebRuntimeFeatures.cpp
diff --git a/Source/web/WebRuntimeFeatures.cpp b/Source/web/WebRuntimeFeatures.cpp
index e918f91d6dd9719181de6683612dabbf8867c7fe..f4623f623eea12c05c683aba241fbd0d6fef3fd9 100644
--- a/Source/web/WebRuntimeFeatures.cpp
+++ b/Source/web/WebRuntimeFeatures.cpp
@@ -158,6 +158,11 @@ void WebRuntimeFeatures::enableMediaSource(bool enable)
RuntimeEnabledFeatures::setMediaSourceEnabled(enable);
}
+void WebRuntimeFeatures::enableNotificationConstructor(bool enable)
+{
+ RuntimeEnabledFeatures::setNotificationConstructorEnabled(enable);
+}
+
void WebRuntimeFeatures::enableNotifications(bool enable)
{
RuntimeEnabledFeatures::setNotificationsEnabled(enable);
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698