Chromium Code Reviews| 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) { |