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

Unified Diff: Source/core/page/PageLifecycleObserver.cpp

Issue 901663005: Revert r189385 "Remove LifecycleContext" and r189391, r189530, r189456 that block it (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/page/PageLifecycleObserver.h ('k') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PageLifecycleObserver.cpp
diff --git a/Source/core/page/PageLifecycleObserver.cpp b/Source/core/page/PageLifecycleObserver.cpp
index eb370deacd32f9c95486a3f05d9de494a96c5aab..4870f2ed1d7e1a7ebda2201c26d67ea139ff54c8 100644
--- a/Source/core/page/PageLifecycleObserver.cpp
+++ b/Source/core/page/PageLifecycleObserver.cpp
@@ -28,18 +28,17 @@
#include "core/page/PageLifecycleObserver.h"
#include "core/page/Page.h"
-#include "core/page/PageLifecycleNotifier.h"
namespace blink {
-template<> void observeContext(Page* context, LifecycleObserver<Page>* observer)
+template<> void observerContext(Page* context, LifecycleObserver<Page>* observer)
{
- context->addObserver(observer);
+ context->wasObservedBy(observer);
}
-template<> void unobserveContext(Page* context, LifecycleObserver<Page>* observer)
+template<> void unobserverContext(Page* context, LifecycleObserver<Page>* observer)
{
- context->removeObserver(observer);
+ context->wasUnobservedBy(observer);
}
PageLifecycleObserver::PageLifecycleObserver(Page* page)
« no previous file with comments | « Source/core/page/PageLifecycleObserver.h ('k') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698