Chromium Code Reviews

Unified Diff: Source/web/WebNotification.cpp

Issue 310393004: Oilpan: update WebNotification and WebDOMMediaStreamTrack type conversions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use RawPtr for WebNotification Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/web/WebNotification.cpp
diff --git a/Source/web/WebNotification.cpp b/Source/web/WebNotification.cpp
index 7ba72eb71b4b92b5508067b92733f59750da53b0..58386071a4b9c4c8edf4f4cb68d4a8c3c9026057 100644
--- a/Source/web/WebNotification.cpp
+++ b/Source/web/WebNotification.cpp
@@ -114,20 +114,15 @@ void WebNotification::dispatchClickEvent()
m_private->dispatchClickEvent();
}
-WebNotification::WebNotification(const WTF::PassRefPtr<WebCore::Notification>& notification)
+WebNotification::WebNotification(const WTF::RawPtr<Notification>& notification)
: m_private(notification)
{
}
-WebNotification& WebNotification::operator=(const WTF::PassRefPtr<Notification>& notification)
+WebNotification& WebNotification::operator=(const WTF::RawPtr<Notification>& notification)
{
m_private = notification;
return *this;
}
-WebNotification::operator WTF::PassRefPtr<Notification>() const
-{
- return m_private.get();
-}
-
} // namespace blink

Powered by Google App Engine