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) |