Index: Source/core/frame/DOMWindowLifecycleObserver.cpp |
diff --git a/Source/core/frame/DOMWindowLifecycleObserver.cpp b/Source/core/frame/DOMWindowLifecycleObserver.cpp |
index 7f5caca977f7e666982f96fc36787ec21a29cfb0..97e757ea9eeb8ed57f3a9b9cbd898b789f468f16 100644 |
--- a/Source/core/frame/DOMWindowLifecycleObserver.cpp |
+++ b/Source/core/frame/DOMWindowLifecycleObserver.cpp |
@@ -32,19 +32,10 @@ |
namespace blink { |
-template<> void observeContext(LocalDOMWindow* context, LifecycleObserver<LocalDOMWindow>* observer) |
-{ |
- context->addObserver(observer); |
-} |
- |
-template<> void unobserveContext(LocalDOMWindow* context, LifecycleObserver<LocalDOMWindow>* observer) |
-{ |
- context->removeObserver(observer); |
-} |
- |
DOMWindowLifecycleObserver::DOMWindowLifecycleObserver(LocalDOMWindow* window) |
- : LifecycleObserver<LocalDOMWindow>(window, DOMWindowLifecycleObserverType) |
+ : LifecycleObserver<LocalDOMWindow, DOMWindowLifecycleObserver, DOMWindowLifecycleNotifier>(window) |
{ |
+ setContext(window); |
} |
DOMWindowLifecycleObserver::~DOMWindowLifecycleObserver() |