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 407695698f89695224c755778a9469741c1da770..1a3bd65213324bd34421982620227f3d9f061647 100644 |
--- a/chrome/test/data/push_messaging/test.html |
+++ b/chrome/test/data/push_messaging/test.html |
@@ -2,6 +2,7 @@ |
<html> |
<head> |
<title>Push API Test</title> |
+ <link rel="manifest" href="manifest.json"> |
<script> |
function sendResultToTest(result) { |
console.log(result); |
@@ -21,9 +22,10 @@ |
}, sendErrorToTest); |
} |
- function registerPush(senderId) { |
+ function registerPush() { |
navigator.serviceWorker.ready.then(function() { |
- navigator.push.register(senderId).then(function(pushRegistration) { |
+ // TODO(peter): Remove the argument once Blink no longer requires it. |
+ navigator.push.register('DEPRECATED').then(function(pushRegistration) { |
sendResultToTest(pushRegistration.pushEndpoint + ' - ' + pushRegistration.pushRegistrationId); |
}, sendErrorToTest); |
}, sendErrorToTest); |