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

Unified Diff: chrome/test/data/push_messaging/test.html

Issue 718203004: [PUSH] Merge notifications and push messaging prompts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/push_messaging/test.html
diff --git a/chrome/test/data/push_messaging/test.html b/chrome/test/data/push_messaging/test.html
index 372f3e1c7978121d103d6c8827025794cb4c97a3..d9fea8ebd37737cb2c9a9aa48b091efea051ccfa 100644
--- a/chrome/test/data/push_messaging/test.html
+++ b/chrome/test/data/push_messaging/test.html
@@ -48,6 +48,12 @@
}
};
+ function requestPermission() {
Michael van Ouwerkerk 2014/11/13 18:35:52 Please rename to requestNotificationPermission to
Miguel Garcia 2014/11/14 11:34:36 Done.
+ Notification.requestPermission(function(granted) {
Michael van Ouwerkerk 2014/11/13 18:35:52 s/granted/permission/
Miguel Garcia 2014/11/14 11:34:36 Done.
+ sendResultToTest('permission status - ' + granted);
+ });
+ }
+
function registerServiceWorker() {
navigator.serviceWorker.register('service_worker.js', {scope: './'}).then(
function(swRegistration) {

Powered by Google App Engine
This is Rietveld 408576698