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

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

Issue 1231613005: Hook up the Push API with GCM's new ability to own encryption keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcm-encryption
Patch Set: comments + win fix Created 5 years, 5 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/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 607126f3c39f90a4e52a893ca43074459b353c94..5060c3226910784f22398a510e4fe0cbbbe16b83 100644
--- a/chrome/test/data/push_messaging/push_test.js
+++ b/chrome/test/data/push_messaging/push_test.js
@@ -106,6 +106,16 @@ function subscribePush() {
}).catch(sendErrorToTest);
}
+function getCurve25519dh() {
+ navigator.serviceWorker.ready.then(function(swRegistration) {
+ return swRegistration.pushManager.subscribe(pushSubscriptionOptions)
johnme 2015/07/21 15:37:26 Nit: the intent would probably be clearer if you s
Peter Beverloo 2015/07/21 15:51:08 Done.
+ .then(function(subscription) {
+ sendResultToTest(btoa(String.fromCharCode.apply(null,
+ new Uint8Array(subscription.curve25519dh))));
+ });
+ }).catch(sendErrorToTest);
+}
+
function permissionState() {
navigator.serviceWorker.ready.then(function(swRegistration) {
return swRegistration.pushManager.permissionState(pushSubscriptionOptions)

Powered by Google App Engine
This is Rietveld 408576698