Index: Source/core/page/PageLifecycleObserver.cpp |
diff --git a/Source/core/page/PageLifecycleObserver.cpp b/Source/core/page/PageLifecycleObserver.cpp |
index eb370deacd32f9c95486a3f05d9de494a96c5aab..b1e74407b844381f1cda9be7d485632bd2864eb2 100644 |
--- a/Source/core/page/PageLifecycleObserver.cpp |
+++ b/Source/core/page/PageLifecycleObserver.cpp |
@@ -27,24 +27,12 @@ |
#include "config.h" |
#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) |
-{ |
- context->addObserver(observer); |
-} |
- |
-template<> void unobserveContext(Page* context, LifecycleObserver<Page>* observer) |
-{ |
- context->removeObserver(observer); |
-} |
- |
PageLifecycleObserver::PageLifecycleObserver(Page* page) |
- : LifecycleObserver<Page>(page, PageLifecycleObserverType) |
+ : LifecycleObserver<Page, PageLifecycleObserver, PageLifecycleNotifier>(page) |
{ |
+ setContext(page); |
} |
PageLifecycleObserver::~PageLifecycleObserver() |