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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 14241027: Disable the Gamepad API run-time flag for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased again Created 7 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
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index d9f9a7d9568c2330dd794b9c799b3e8ffb1d1a13..268de1416bb3149f58d4f093f03f4a366b2fdbd9 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -750,8 +750,13 @@ void RenderThreadImpl::EnsureWebKitInitialized() {
#if defined(OS_ANDROID)
// Web Speech API Speech recognition is not implemented on Android yet.
WebRuntimeFeatures::enableScriptedSpeech(false);
+
+ //Gamepad API is not implemented on Android yet.
Peter Beverloo 2013/04/23 14:45:52 There currently are no plans to add support, so I'
+ WebRuntimeFeatures::enableGamepad(false);
#else
WebRuntimeFeatures::enableScriptedSpeech(true);
+
+ WebRuntimeFeatures::enableGamepad(true);
#endif
#if defined(OS_ANDROID)
@@ -765,8 +770,6 @@ void RenderThreadImpl::EnsureWebKitInitialized() {
WebRuntimeFeatures::enableJavaScriptI18NAPI(
!command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI));
- WebRuntimeFeatures::enableGamepad(true);
-
WebRuntimeFeatures::enableQuota(true);
WebRuntimeFeatures::enableShadowDOM(true);
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698