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

Unified Diff: content/child/runtime_features.cc

Issue 2787843003: Add Accessibility Object Model to content features, and add a browser test. (Closed)
Patch Set: doctype Created 3 years, 8 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: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 4eec4971c3f3377e94178c83371ca57bbdf6973f..b783df3bdd63ad83df54c5ef83fcb5d74ad293b0 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -317,6 +317,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
features::kSendBeaconThrowForBlobWithNonSimpleType))
WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(true);
+ WebRuntimeFeatures::enableAccessibilityObjectModel(
+ base::FeatureList::IsEnabled(features::kAccessibilityObjectModel));
esprehn 2017/04/04 19:06:20 Why features:: instead of switches:: This is diffe
dmazzoni 2017/04/04 19:28:16 I think features are more flexible, right? We get
esprehn 2017/04/04 19:59:44 Ah okay that makes sense, is there a doc somewhere
+
#if defined(OS_ANDROID)
if (command_line.HasSwitch(switches::kDisableMediaSessionAPI))
WebRuntimeFeatures::enableMediaSession(false);
« no previous file with comments | « content/browser/accessibility/dump_accessibility_tree_browsertest.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698