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

Unified Diff: Source/devtools/front_end/profiler/HeapSnapshotView.js

Issue 720223002: DevTools: only allow status bar items in status bars. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/profiler/HeapSnapshotView.js
diff --git a/Source/devtools/front_end/profiler/HeapSnapshotView.js b/Source/devtools/front_end/profiler/HeapSnapshotView.js
index f7465ef62059ffec154acd74fbfce0898f330fb2..03f929ce23cc36b2f81381062246be63a6b1b004 100644
--- a/Source/devtools/front_end/profiler/HeapSnapshotView.js
+++ b/Source/devtools/front_end/profiler/HeapSnapshotView.js
@@ -523,12 +523,15 @@ WebInspector.HeapSnapshotView.prototype = {
this._constructorsDataGrid.setSelectionRange(minId, maxId);
},
- get statusBarItems()
+ /**
+ * @return {!Array.<!WebInspector.StatusBarItem>}
+ */
+ statusBarItems: function()
{
- var result = [this._perspectiveSelect.element, this._classNameFilter.element];
+ var result = [this._perspectiveSelect, this._classNameFilter];
if (this._profile.profileType() !== WebInspector.ProfileTypeRegistry.instance.trackingHeapSnapshotProfileType)
- result.push(this._baseSelect.element, this._filterSelect.element);
- result.push(this._selectedSizeText.element);
+ result.push(this._baseSelect, this._filterSelect);
+ result.push(this._selectedSizeText);
return result;
},

Powered by Google App Engine
This is Rietveld 408576698