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

Unified Diff: third_party/WebKit/Source/core/frame/PlatformEventController.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/core/frame/PlatformEventController.cpp
diff --git a/third_party/WebKit/Source/core/frame/PlatformEventController.cpp b/third_party/WebKit/Source/core/frame/PlatformEventController.cpp
index 032c8e9d38c93c3c68069f39d4a1f01d74a52957..e31fb2708c75ab873c60c816f614c370e1ffbf02 100644
--- a/third_party/WebKit/Source/core/frame/PlatformEventController.cpp
+++ b/third_party/WebKit/Source/core/frame/PlatformEventController.cpp
@@ -8,8 +8,8 @@
namespace blink {
-PlatformEventController::PlatformEventController(Page* page)
- : PageVisibilityObserver(page),
+PlatformEventController::PlatformEventController(LocalFrame* frame)
+ : PageVisibilityObserver(frame ? frame->page() : nullptr),
m_hasEventListener(false),
m_isActive(false),
m_timer(this, &PlatformEventController::oneShotCallback) {}

Powered by Google App Engine
This is Rietveld 408576698