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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js

Issue 2122353002: [DevTools] Make resource tree model optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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: third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js b/third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js
index a458ab19f198bd24d4a974c94461682a68729bf3..3140b273f68b427223d46dbdec59119051c61541 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js
@@ -70,7 +70,9 @@ WebInspector.AppManifestView.prototype = {
_updateManifest: function()
{
- this._target.resourceTreeModel.fetchAppManifest(this._renderManifest.bind(this));
+ var resourceTreeModel = WebInspector.ResourceTreeModel.fromTarget(this._target);
dgozman 2016/07/14 16:29:28 I'd rather set this._resourceTreeModel in targetAd
eostroukhov-old 2016/07/20 23:46:15 Done.
+ if (resourceTreeModel)
+ resourceTreeModel.fetchAppManifest(this._renderManifest.bind(this));
},
/**

Powered by Google App Engine
This is Rietveld 408576698