Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index e9cd610cc75d86b134db6dc57df9d4b93e15d515..5bb13b1bfddcf440a7b58bbad656b1313707edce 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -1377,11 +1377,11 @@ WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() |
return 0; |
} |
-NotificationPresenterImpl* WebLocalFrameImpl::notificationPresenterImpl() |
+PassOwnPtr<NotificationPresenterImpl> WebLocalFrameImpl::notificationPresenterImpl() |
{ |
- if (!m_notificationPresenter.isInitialized() && m_client) |
- m_notificationPresenter.initialize(m_client->notificationPresenter()); |
- return &m_notificationPresenter; |
+ if (!m_notificationPresenter->isInitialized() && m_client) |
+ m_notificationPresenter->initialize(m_client->notificationPresenter()); |
+ return m_notificationPresenter.release(); |
} |
int WebLocalFrameImpl::printBegin(const WebPrintParams& printParams, const WebNode& constrainToNode) |