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

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

Issue 1622553004: PartitionAlloc: Increase the number of pages per bucket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/service_worker.js
diff --git a/chrome/test/data/push_messaging/service_worker.js b/chrome/test/data/push_messaging/service_worker.js
index e884e899b39348d4e48e9446bfe1e55ebf6c5e63..a338fdc12b67916945a433b11fde0aa64f25debb 100644
--- a/chrome/test/data/push_messaging/service_worker.js
+++ b/chrome/test/data/push_messaging/service_worker.js
@@ -10,6 +10,11 @@
// "shownotification-without-waituntil"
// - Display a Web Notification without using event.waitUntil().
this.onpush = function(event) {
+ if (event.data === null) {
+ sendMessageToClients('push', '[NULL]');
+ return;
+ }
+
var data = event.data.text();
if (!data.startsWith('shownotification')) {
sendMessageToClients('push', data);

Powered by Google App Engine
This is Rietveld 408576698