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

Unified Diff: Source/WebCore/notifications/NotificationCenter.cpp

Issue 6594055: Merge 77738 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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/WebCore/notifications/NotificationCenter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/notifications/NotificationCenter.cpp
===================================================================
--- Source/WebCore/notifications/NotificationCenter.cpp (revision 79891)
+++ Source/WebCore/notifications/NotificationCenter.cpp (working copy)
@@ -42,21 +42,20 @@
NotificationCenter::NotificationCenter(ScriptExecutionContext* context, NotificationPresenter* presenter)
: ActiveDOMObject(context, this)
- , m_scriptExecutionContext(context)
, m_notificationPresenter(presenter) {}
int NotificationCenter::checkPermission()
{
- if (!presenter())
+ if (!presenter() || !scriptExecutionContext())
return NotificationPresenter::PermissionDenied;
- return m_notificationPresenter->checkPermission(m_scriptExecutionContext);
+ return m_notificationPresenter->checkPermission(scriptExecutionContext());
}
void NotificationCenter::requestPermission(PassRefPtr<VoidCallback> callback)
{
- if (!presenter())
+ if (!presenter() || !scriptExecutionContext())
return;
- m_notificationPresenter->requestPermission(m_scriptExecutionContext, callback);
+ m_notificationPresenter->requestPermission(scriptExecutionContext(), callback);
}
void NotificationCenter::disconnectFrame()
@@ -66,9 +65,8 @@
ASSERT(m_notificationPresenter);
if (!m_notificationPresenter)
return;
- m_notificationPresenter->cancelRequestsForPermission(m_scriptExecutionContext);
+ m_notificationPresenter->cancelRequestsForPermission(scriptExecutionContext());
m_notificationPresenter = 0;
- m_scriptExecutionContext = 0;
}
} // namespace WebCore
Property changes on: Source\WebCore\notifications\NotificationCenter.cpp
___________________________________________________________________
Added: svn:mergeinfo
Merged /trunk/WebCore/notifications/NotificationCenter.cpp:r53455
« no previous file with comments | « Source/WebCore/notifications/NotificationCenter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698