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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 263883004: NotificationController handles an ownership of NotificaitonClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« Source/web/WebLocalFrameImpl.h ('K') | « Source/web/WebLocalFrameImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« Source/web/WebLocalFrameImpl.h ('K') | « Source/web/WebLocalFrameImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698