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

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

Issue 2469293002: Handle push resubscribes with no sender info (avoids DCHECK) (Closed)
Patch Set: Split the code path for registered/unregistered as in patch set 2; comments Created 4 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/service_worker.js
diff --git a/chrome/test/data/push_messaging/service_worker.js b/chrome/test/data/push_messaging/service_worker.js
index 0e134855652b0d9035a39de5fed5584612bddb8b..d59a933652977e5efae00e489ea54f71238aa1f4 100644
--- a/chrome/test/data/push_messaging/service_worker.js
+++ b/chrome/test/data/push_messaging/service_worker.js
@@ -51,6 +51,9 @@ self.addEventListener('message', function handler (event) {
};
if (event.data.command == 'workerSubscribe') {
pushSubscriptionOptions.applicationServerKey = kApplicationServerKey.buffer;
+ } else if (event.data.command == 'workerSubscribeWithNumericKey') {
+ pushSubscriptionOptions.applicationServerKey =
+ new TextEncoder().encode('1234567890');
} else if (event.data.command == 'workerSubscribeNoKey') {
// Nothing to set up
} else {

Powered by Google App Engine
This is Rietveld 408576698