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

Unified Diff: runtime/observatory/lib/src/elements/cpu_profile.dart

Issue 2273993002: Converted Observatory cpu-profile-table element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Addressed comments 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: runtime/observatory/lib/src/elements/cpu_profile.dart
diff --git a/runtime/observatory/lib/src/elements/cpu_profile.dart b/runtime/observatory/lib/src/elements/cpu_profile.dart
index 014fd807fe2dd4345a0d379dc5fd538eb5cc04d9..75e2c0747ef5915ff638fbc1d34e313c18da80bd 100644
--- a/runtime/observatory/lib/src/elements/cpu_profile.dart
+++ b/runtime/observatory/lib/src/elements/cpu_profile.dart
@@ -131,9 +131,9 @@ class CpuProfileElement extends HtmlElement implements Renderable {
})
..onFilterChange.listen((e) {
_filter = e.element.filter.trim();
- tree.filter = _filter.isNotEmpty
- ? (node) { return node.name.contains(_filter); }
- : null;
+ tree.filters = _filter.isNotEmpty
+ ? [(node) { return node.name.contains(_filter); }]
+ : const [];
})
..onDirectionChange.listen((e) {
_direction = tree.direction = e.element.direction;

Powered by Google App Engine
This is Rietveld 408576698