summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/notifications/NotificationController.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/Modules/notifications/NotificationController.cpp
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/Modules/notifications/NotificationController.cpp')
-rw-r--r--Source/WebCore/Modules/notifications/NotificationController.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/WebCore/Modules/notifications/NotificationController.cpp b/Source/WebCore/Modules/notifications/NotificationController.cpp
index 1f1bc8250..0a90889d4 100644
--- a/Source/WebCore/Modules/notifications/NotificationController.cpp
+++ b/Source/WebCore/Modules/notifications/NotificationController.cpp
@@ -10,10 +10,10 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
@@ -29,6 +29,7 @@
#if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
#include "NotificationClient.h"
+#include <wtf/PassOwnPtr.h>
namespace WebCore {
@@ -43,6 +44,11 @@ NotificationController::~NotificationController()
m_client->notificationControllerDestroyed();
}
+PassOwnPtr<NotificationController> NotificationController::create(NotificationClient* client)
+{
+ return adoptPtr(new NotificationController(client));
+}
+
NotificationClient* NotificationController::clientFrom(Page* page)
{
if (NotificationController* controller = NotificationController::from(page))
@@ -57,7 +63,7 @@ const char* NotificationController::supplementName()
void provideNotification(Page* page, NotificationClient* client)
{
- NotificationController::provideTo(page, NotificationController::supplementName(), std::make_unique<NotificationController>(client));
+ NotificationController::provideTo(page, NotificationController::supplementName(), NotificationController::create(client));
}
} // namespace WebCore