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

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

Issue 985063002: Pass in the origin when closing a persistent notification. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | « no previous file | public/platform/modules/notifications/WebNotificationManager.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 0a8cf69dae08118ca53c7ea87a16e0f59bf85c07..1ae79f16e69b4af63edbbd9a5138601a727f6436 100644
--- a/Source/modules/notifications/Notification.cpp
+++ b/Source/modules/notifications/Notification.cpp
@@ -169,7 +169,11 @@ void Notification::close()
notificationManager()->close(this);
} else {
m_state = NotificationStateClosed;
- notificationManager()->closePersistent(m_persistentId);
+
+ SecurityOrigin* origin = executionContext()->securityOrigin();
+ ASSERT(origin);
+
+ notificationManager()->closePersistent(WebSerializedOrigin(*origin), m_persistentId);
}
}
« no previous file with comments | « no previous file | public/platform/modules/notifications/WebNotificationManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698