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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp 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 1dd81ed9d38c11f6266dd88a574a475fecccc33c..9d249c288613914683272633c3c318a85577aedb 100644
--- a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -182,10 +182,12 @@ const char* NavigatorGamepad::supplementName() {
return "NavigatorGamepad";
}
-void NavigatorGamepad::contextDestroyed() {
+void NavigatorGamepad::contextDestroyed(ExecutionContext*) {
stopUpdating();
}
+void NavigatorGamepad::contextDestroyed(Page*) {}
+
void NavigatorGamepad::registerWithDispatcher() {
GamepadDispatcher::instance().addController(this);
m_dispatchOneEventRunner->resume();

Powered by Google App Engine
This is Rietveld 408576698