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

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

Issue 2751343002: Adds a basic offline check to InstallableManager. (Closed)
Patch Set: Created 3 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/banners/service_worker.js
diff --git a/chrome/test/data/banners/service_worker.js b/chrome/test/data/banners/service_worker.js
index 1047484ea8ad0c9f6964dc0d605c651c160dbdb7..22d5efe8ff5f4ff1e170188822f37c38a49b797c 100644
--- a/chrome/test/data/banners/service_worker.js
+++ b/chrome/test/data/banners/service_worker.js
@@ -2,4 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-self.addEventListener('activate', function(event) {});
+self.addEventListener('activate', function(event) {});
+
+// A no-op fetch handler.
+self.addEventListener('fetch', e => e.respondWith(fetch(e.request)));

Powered by Google App Engine
This is Rietveld 408576698