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

Unified Diff: chrome/test/data/push_messaging/push_test.js

Issue 802393002: Push API: rename to endpoint and registrationId. [3/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PushRenameRegistrationAttributes
Patch Set: Rebase. Created 6 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/push_messaging/push_test.js
diff --git a/chrome/test/data/push_messaging/push_test.js b/chrome/test/data/push_messaging/push_test.js
index 1076f3fb99dc3a4a96c489b3daf6adb8a7e5bc23..ed810e1bd39785e4f35d730fbe42d1b95a12ce3b 100644
--- a/chrome/test/data/push_messaging/push_test.js
+++ b/chrome/test/data/push_messaging/push_test.js
@@ -92,12 +92,8 @@ function registerPush() {
navigator.serviceWorker.ready.then(function(swRegistration) {
return swRegistration.pushManager.register()
.then(function(pushRegistration) {
- // TODO: Cleanup once the final API is exposed.
- var endpoint = pushRegistration.endpoint ||
- pushRegistration.pushEndpoint;
- var registrationId = pushRegistration.registrationId ||
- pushRegistration.pushRegistrationId;
- sendResultToTest(endpoint + ' - ' + registrationId);
+ sendResultToTest(pushRegistration.endpoint + ' - ' +
+ pushRegistration.registrationId);
});
}).catch(sendErrorToTest);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698