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

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

Issue 15232002: Make remaining modules/ objects ScriptWrappable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/NotificationCenter.h » ('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 f2546926e2fcd043870493bf9fc6ead329593e0e..1b722f5b2a6ab44a4d71d6a6087c7be0cc8eef74 100644
--- a/Source/modules/notifications/Notification.cpp
+++ b/Source/modules/notifications/Notification.cpp
@@ -56,6 +56,7 @@ namespace WebCore {
Notification::Notification()
: ActiveDOMObject(0)
{
+ ScriptWrappable::init(this);
}
#if ENABLE(LEGACY_NOTIFICATIONS)
@@ -65,6 +66,7 @@ Notification::Notification(const KURL& url, ScriptExecutionContext* context, Exc
, m_state(Idle)
, m_notificationCenter(provider)
{
+ ScriptWrappable::init(this);
if (m_notificationCenter->checkPermission() != NotificationClient::PermissionAllowed) {
ec = SECURITY_ERR;
return;
@@ -88,6 +90,7 @@ Notification::Notification(const String& title, const String& body, const String
, m_state(Idle)
, m_notificationCenter(provider)
{
+ ScriptWrappable::init(this);
if (m_notificationCenter->checkPermission() != NotificationClient::PermissionAllowed) {
ec = SECURITY_ERR;
return;
@@ -109,6 +112,7 @@ Notification::Notification(ScriptExecutionContext* context, const String& title)
, m_state(Idle)
, m_taskTimer(adoptPtr(new Timer<Notification>(this, &Notification::taskTimerFired)))
{
+ ScriptWrappable::init(this);
m_notificationCenter = DOMWindowNotifications::webkitNotifications(toDocument(context)->domWindow());
ASSERT(m_notificationCenter->client());
« no previous file with comments | « Source/modules/notifications/Notification.h ('k') | Source/modules/notifications/NotificationCenter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698