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

Unified Diff: chrome/browser/resources/inspect/inspect.js

Issue 304543002: Show the unregistered workers in chrome://serviceworker-internals and chrome://inspect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment 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/resources/service_worker/serviceworker_internals.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/inspect/inspect.js
diff --git a/chrome/browser/resources/inspect/inspect.js b/chrome/browser/resources/inspect/inspect.js
index 4d4d7c4c8ff9b333004e7089537a98009f7e1a3c..e18a8814760405172de360ee529d74c87717d730 100644
--- a/chrome/browser/resources/inspect/inspect.js
+++ b/chrome/browser/resources/inspect/inspect.js
@@ -29,11 +29,10 @@ function sendTargetCommand(command, target) {
sendCommand(command, target.source, target.id);
}
-function sendServiceWorkerCommand(action, partition_path, scope) {
+function sendServiceWorkerCommand(action, worker) {
$('serviceworker-internals').contentWindow.postMessage({
'action': action,
- 'partition_path': partition_path,
- 'scope': scope
+ 'worker': worker
},'chrome://serviceworker-internals');
}
@@ -127,18 +126,12 @@ function populateServiceWorkers(partition_id, workers) {
addActionLink(
row,
'inspect',
- sendServiceWorkerCommand.bind(null,
- 'inspect',
- worker.partition_path,
- worker.scope),
+ sendServiceWorkerCommand.bind(null, 'inspect', worker),
false);
addActionLink(
row,
'terminate',
- sendServiceWorkerCommand.bind(null,
- 'stop',
- worker.partition_path,
- worker.scope),
+ sendServiceWorkerCommand.bind(null, 'stop', worker),
false);
}
}
« no previous file with comments | « no previous file | content/browser/resources/service_worker/serviceworker_internals.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698