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

Unified Diff: content/child/runtime_features.cc

Issue 2356193002: [Sensors] Adding chrome flag to enable Generic Sensor based APIs (Closed)
Patch Set: rebased Created 4 years, 2 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 | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 94b80631256f6fc52a73803a2f1f03ae3d195417..0b2bded16a5d2182dbf3500568078adcafe8697a 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -306,6 +306,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
WebRuntimeFeatures::enableFeatureFromString("CompositeOpaqueScrollers",
false);
+ if (base::FeatureList::IsEnabled(features::kGenericSensor))
+ WebRuntimeFeatures::enableGenericSensor(true);
+
// Enable explicitly enabled features, and then disable explicitly disabled
// ones.
if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) {
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698