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

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

Issue 2356193002: [Sensors] Adding chrome flag to enable Generic Sensor based APIs (Closed)
Patch Set: Updated histograms.xml Created 4 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
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 1067af00ffb33a0addc06a4909d8f527a1bf5e8e..2cb2115a3f85a8287fae29addc4f7301fa5b035c 100644
--- a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
+++ b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
@@ -155,6 +155,11 @@ void WebRuntimeFeatures::enableGamepadExtensions(bool enable)
RuntimeEnabledFeatures::setGamepadExtensionsEnabled(enable);
}
+void WebRuntimeFeatures::enableGenericSensor(bool enable)
+{
+ RuntimeEnabledFeatures::setSensorEnabled(enable);
+}
+
void WebRuntimeFeatures::enableInputMultipleFieldsUI(bool enable)
{
RuntimeEnabledFeatures::setInputMultipleFieldsUIEnabled(enable);

Powered by Google App Engine
This is Rietveld 408576698