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

Unified Diff: Source/web/WebRuntimeFeatures.cpp

Issue 22855008: Support a runtime flag for navigator content utils feature (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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/WebRuntimeFeatures.cpp
diff --git a/Source/web/WebRuntimeFeatures.cpp b/Source/web/WebRuntimeFeatures.cpp
index 8c3ae169016cd832c70010c81f8e3044d7d9fe52..f565fee99b47df479fb66ae1a109abaac219cb92 100644
--- a/Source/web/WebRuntimeFeatures.cpp
+++ b/Source/web/WebRuntimeFeatures.cpp
@@ -377,6 +377,22 @@ bool WebRuntimeFeatures::isHTMLImportsEnabled()
return RuntimeEnabledFeatures::htmlImportsEnabled();
}
+void WebRuntimeFeatures::enableNavigatorContentUtils(bool enable)
+{
+#if ENABLE(NAVIGATOR_CONTENT_UTILS)
+ RuntimeEnabledFeatures::setNavigatorContentUtilsEnabled(enable);
+#endif
+}
+
+bool WebRuntimeFeatures::isNavigatorContentUtilsEnabled()
+{
+#if ENABLE(NAVIGATOR_CONTENT_UTILS)
+ return RuntimeEnabledFeatures::navigatorContentUtilsEnabled();
+#else
+ return false;
+#endif
+}
+
void WebRuntimeFeatures::enableCustomElements(bool enable)
{
RuntimeEnabledFeatures::setCustomElementsEnabled(enable);

Powered by Google App Engine
This is Rietveld 408576698