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

Unified Diff: Source/modules/notifications/Notification.cpp

Issue 234823003: Oilpan: Enable Oilpan in modules/notifications (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
« no previous file with comments | « Source/modules/notifications/Notification.h ('k') | Source/modules/notifications/Notification.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/notifications/Notification.cpp
diff --git a/Source/modules/notifications/Notification.cpp b/Source/modules/notifications/Notification.cpp
index 97091595899eb4c3d79d9865dfd5e9633ae33819..dafe2aff5b3486da5ea122084bf4df685dcf5833 100644
--- a/Source/modules/notifications/Notification.cpp
+++ b/Source/modules/notifications/Notification.cpp
@@ -40,10 +40,10 @@
namespace WebCore {
-PassRefPtrWillBeRawPtr<Notification> Notification::create(ExecutionContext* context, const String& title, const Dictionary& options)
+Notification* Notification::create(ExecutionContext* context, const String& title, const Dictionary& options)
{
NotificationClient* client = NotificationController::clientFrom(toDocument(context)->page());
- RefPtrWillBeRawPtr<Notification> notification = adoptRefWillBeRefCountedGarbageCollected(new Notification(title, context, client));
+ Notification* notification = adoptRefCountedGarbageCollected(new Notification(title, context, client));
String argument;
if (options.get("body", argument))
@@ -61,7 +61,7 @@ PassRefPtrWillBeRawPtr<Notification> Notification::create(ExecutionContext* cont
}
notification->suspendIfNeeded();
- return notification.release();
+ return notification;
}
Notification::Notification(const String& title, ExecutionContext* context, NotificationClient* client)
« no previous file with comments | « Source/modules/notifications/Notification.h ('k') | Source/modules/notifications/Notification.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698