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

Unified Diff: content/child/runtime_features.cc

Issue 133943002: Gamepad API support for chrome on android (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 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 8e0e79818d667d06acc84414f91b8384fe33d847..c548cbc7429b279da0670794a027ef99710b15b8 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -31,8 +31,8 @@ static void SetRuntimeFeatureDefaultsForPlatform() {
WebRuntimeFeatures::enableWebAudio(
media::MediaCodecBridge::IsAvailable() &&
(android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM));
- // Android does not support the Gamepad API.
- WebRuntimeFeatures::enableGamepad(false);
+ // Enable Gamepad at runtime as Android supports the Gamepad API
+ WebRuntimeFeatures::enableGamepad(true);
kbalazs 2014/02/20 00:48:24 No need for turning it on, you can simply remove t
// Android does not have support for PagePopup
WebRuntimeFeatures::enablePagePopup(false);
// Android does not yet support the Web Notification API. crbug.com/115320

Powered by Google App Engine
This is Rietveld 408576698