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

Unified Diff: Source/modules/gamepad/NavigatorGamepad.cpp

Issue 582363002: Remove Gamepad runtime flag (status=stable) for blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/modules/gamepad/NavigatorGamepad.idl » ('j') | Source/web/FrameLoaderClientImpl.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/NavigatorGamepad.cpp
diff --git a/Source/modules/gamepad/NavigatorGamepad.cpp b/Source/modules/gamepad/NavigatorGamepad.cpp
index 37b2d01e449cbc6c1a7b819278fd3dc9579b6684..dd60ce0c8116bae92dae42f08a6eb677d7927b47 100644
--- a/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -35,7 +35,6 @@
#include "modules/gamepad/GamepadEvent.h"
#include "modules/gamepad/GamepadList.h"
#include "modules/gamepad/WebKitGamepadList.h"
-#include "platform/RuntimeEnabledFeatures.h"
namespace blink {
@@ -228,7 +227,7 @@ static bool isGamepadEvent(const AtomicString& eventType)
void NavigatorGamepad::didAddEventListener(LocalDOMWindow*, const AtomicString& eventType)
{
- if (RuntimeEnabledFeatures::gamepadEnabled() && isGamepadEvent(eventType)) {
+ if (isGamepadEvent(eventType)) {
if (page() && page()->visibilityState() == PageVisibilityStateVisible)
startUpdating();
m_hasEventListener = true;
« no previous file with comments | « no previous file | Source/modules/gamepad/NavigatorGamepad.idl » ('j') | Source/web/FrameLoaderClientImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698