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

Unified Diff: Source/devtools/front_end/sdk/Target.js

Issue 1044203004: [Storage] Cache storage inspection on all the frames! (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: comments and rebase Created 5 years, 8 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: Source/devtools/front_end/sdk/Target.js
diff --git a/Source/devtools/front_end/sdk/Target.js b/Source/devtools/front_end/sdk/Target.js
index a46b2dcdebbefb0bfa8296415883058d494eca9b..2c783cf14e0ce25bc73d8caae7fac3f1ebe173f9 100644
--- a/Source/devtools/front_end/sdk/Target.js
+++ b/Source/devtools/front_end/sdk/Target.js
@@ -147,11 +147,6 @@ WebInspector.Target.prototype = {
/** @type {!WebInspector.AnimationModel} */
this.animationModel = new WebInspector.AnimationModel(this);
- if (this._parentTarget && this._parentTarget.isServiceWorker()) {
- /** @type {!WebInspector.ServiceWorkerCacheModel} */
- this.serviceWorkerCacheModel = new WebInspector.ServiceWorkerCacheModel(this);
- }
-
this.tracingManager = new WebInspector.TracingManager(this);
if (this.isPage() && (Runtime.experiments.isEnabled("serviceWorkersInPageFrontend") || Runtime.experiments.isEnabled("serviceWorkersInResources")))
@@ -230,8 +225,7 @@ WebInspector.Target.prototype = {
this.debuggerModel.dispose();
this.networkManager.dispose();
this.cpuProfilerModel.dispose();
- if (this.serviceWorkerCacheModel)
- this.serviceWorkerCacheModel.dispose();
+ WebInspector.ServiceWorkerCacheModel.fromTarget(this).dispose();
if (this.workerManager)
this.workerManager.dispose();
},

Powered by Google App Engine
This is Rietveld 408576698