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

Unified Diff: Source/web/WebRuntimeFeatures.cpp

Issue 422933003: Add enabling/disabling of NetworkInformation API via WebRuntimeFeatures. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | 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 f2c13bf00caf78477f64048c19af9f2a3379ee73..a04b33feed7bad3291d9bc106d0ad864be147d7c 100644
--- a/Source/web/WebRuntimeFeatures.cpp
+++ b/Source/web/WebRuntimeFeatures.cpp
@@ -170,6 +170,11 @@ void WebRuntimeFeatures::enableNavigationTransitions(bool enable)
RuntimeEnabledFeatures::setNavigationTransitionsEnabled(enable);
}
+void WebRuntimeFeatures::enableNetworkInformation(bool enable)
+{
+ RuntimeEnabledFeatures::setNetworkInformationEnabled(enable);
+}
+
void WebRuntimeFeatures::enableOrientationEvent(bool enable)
{
RuntimeEnabledFeatures::setOrientationEventEnabled(enable);
« no previous file with comments | « no previous file | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698