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

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

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 4 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/ResourcesPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
index cd2d34b2a4fc23f9487e584b1576e2e73c35df1f..86fdd7720f707b06679b7b701f99c2b99012c703 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
@@ -662,7 +662,7 @@ WebInspector.ResourcesPanel.prototype = {
this.visibleView = view;
this._storageViewToolbar.removeToolbarItems();
- var toolbarItems = view.toolbarItems ? view.toolbarItems() : null;
+ var toolbarItems = view instanceof WebInspector.SimpleView ? view.syncToolbarItems() : null;
for (var i = 0; toolbarItems && i < toolbarItems.length; ++i)
this._storageViewToolbar.appendToolbarItem(toolbarItems[i]);
},

Powered by Google App Engine
This is Rietveld 408576698