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

Unified Diff: content/browser/resources/service_worker/serviceworker_internals.js

Issue 288683002: Update chrome://serviceworker-internals when ServiceWorker is unregistered. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_context_core.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resources/service_worker/serviceworker_internals.js
diff --git a/content/browser/resources/service_worker/serviceworker_internals.js b/content/browser/resources/service_worker/serviceworker_internals.js
index 7ffa11fb8846eafa8c4008855bee0c301107a2ad..ec2132c985ec66df5c642018ecf2cd4f3f4dc43c 100644
--- a/content/browser/resources/service_worker/serviceworker_internals.js
+++ b/content/browser/resources/service_worker/serviceworker_internals.js
@@ -133,6 +133,14 @@ cr.define('serviceworker', function() {
update();
}
+ function onRegistrationStored(scope) {
+ update();
+ }
+
+ function onRegistrationDeleted(scope) {
+ update();
+ }
+
function outputLogMessage(partition_id, version_id, message) {
if (!(partition_id in allLogMessages)) {
allLogMessages[partition_id] = {};
@@ -164,6 +172,8 @@ cr.define('serviceworker', function() {
onErrorReported: onErrorReported,
onConsoleMessageReported: onConsoleMessageReported,
onVersionStateChanged: onVersionStateChanged,
+ onRegistrationStored: onRegistrationStored,
+ onRegistrationDeleted: onRegistrationDeleted,
};
});
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_context_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698