Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

Issue 2431003003: Introduce ServiceWorkerNavigationPreload feature name (Closed)
Patch Set: alphabetical order Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
diff --git a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
index 9b4650349178a3e134a1e13a0573a48947f0af7f..1d6ec036fa4de44f4540a84274c6e69c2d8abfb0 100644
--- a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
+++ b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
@@ -332,6 +332,10 @@ void WebRuntimeFeatures::enableScrollAnchoring(bool enable) {
RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable);
}
+void WebRuntimeFeatures::enableServiceWorkerNavigationPreload(bool enable) {
+ RuntimeEnabledFeatures::setServiceWorkerNavigationPreloadEnabled(enable);
+}
+
void WebRuntimeFeatures::enableAutoplayMutedVideos(bool enable) {
RuntimeEnabledFeatures::setAutoplayMutedVideosEnabled(enable);
}
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine