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

Unified Diff: chrome/test/data/notifications/platform_notification_service.html

Issue 661643002: Adds a context message of the security origin for web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds a bug reference. Created 5 years, 11 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
Index: chrome/test/data/notifications/platform_notification_service.html
diff --git a/chrome/test/data/notifications/platform_notification_service.html b/chrome/test/data/notifications/platform_notification_service.html
index 3fc27dc0c659d24c5ebcb40b343728e16cc8634e..5121de2742202e60ceb7624eaa70fd7dd5d88e7a 100644
--- a/chrome/test/data/notifications/platform_notification_service.html
+++ b/chrome/test/data/notifications/platform_notification_service.html
@@ -15,8 +15,8 @@
// Requests permission to display Web Notifications. Will return the
// permission level to the DOM Automation Controller.
function RequestPermission() {
- Notification.requestPermission(function (level) {
- domAutomationController.send(level);
+ Notification.requestPermission(function () {
+ domAutomationController.send(Notification.permission);
Peter Beverloo 2015/01/27 13:37:04 Are you doing this because |level| will say "grant
dewittj 2015/01/27 23:10:12 Yes, that's correct. I've reimplemented this by r
});
}
@@ -104,4 +104,4 @@
}
</script>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698