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

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

Issue 2645823002: Change PlatformEventController to take LocalFrame rather than Page. (Closed)
Patch Set: Change PlatformEventController to take LocalFrame rather than Page. Created 3 years, 11 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: third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
diff --git a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
index 55f843361123679661997ab8a910b2886af227bf..d865686d827fa6282e134458248ae655a8cf484e 100644
--- a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -170,8 +170,7 @@ NavigatorGamepad::NavigatorGamepad(Navigator& navigator)
: Supplement<Navigator>(navigator),
ContextLifecycleObserver(navigator.frame() ? navigator.frame()->document()
: nullptr),
- PlatformEventController(navigator.frame() ? navigator.frame()->page()
- : nullptr),
+ PlatformEventController(navigator.frame()),
m_dispatchOneEventRunner(AsyncMethodRunner<NavigatorGamepad>::create(
this,
&NavigatorGamepad::dispatchOneEvent)) {

Powered by Google App Engine
This is Rietveld 408576698