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

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: Created 5 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: 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 1fa3501160c8709841ae8962681c63f78e5aec34..376a1912659d53749d2afeab1aa63640d5c89067 100644
--- a/Source/devtools/front_end/sdk/Target.js
+++ b/Source/devtools/front_end/sdk/Target.js
@@ -153,11 +153,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")))
@@ -252,8 +247,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