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

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

Issue 2436393002: Disallow repeated PushManager.subscribes with different sender ids (Closed)
Patch Set: Make error message more informative 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 d59a933652977e5efae00e489ea54f71238aa1f4..ea251e1224e9a137b9a0c8e9737cf9cfdd53849d 100644
--- a/chrome/test/data/push_messaging/service_worker.js
+++ b/chrome/test/data/push_messaging/service_worker.js
@@ -53,7 +53,7 @@ self.addEventListener('message', function handler (event) {
pushSubscriptionOptions.applicationServerKey = kApplicationServerKey.buffer;
} else if (event.data.command == 'workerSubscribeWithNumericKey') {
pushSubscriptionOptions.applicationServerKey =
- new TextEncoder().encode('1234567890');
+ new TextEncoder().encode(event.data.key);
} else if (event.data.command == 'workerSubscribeNoKey') {
// Nothing to set up
} else {
« no previous file with comments | « chrome/test/data/push_messaging/push_test.js ('k') | content/browser/push_messaging/push_messaging_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698