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

Unified Diff: tracing/tracing/extras/tquery/tquery.html

Issue 2083213002: Change call-sites in trace viewer to use generators instead of iteration functions. (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: fix break/continue Created 4 years, 6 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: tracing/tracing/extras/tquery/tquery.html
diff --git a/tracing/tracing/extras/tquery/tquery.html b/tracing/tracing/extras/tquery/tquery.html
index 8953d7e9bddd2aee6770e8ba8dab11432780f757..9101abbe0df5e6b98b300e7c7caaadc644ebf4ab 100644
--- a/tracing/tracing/extras/tquery/tquery.html
+++ b/tracing/tracing/extras/tquery/tquery.html
@@ -147,13 +147,12 @@ tr.exportTo('tr.e.tquery', function() {
// model.
selectEverythingAsTask_: function(selection) {
var filterTask = new tr.b.Task();
- this.model_.iterateAllEventContainers(function(container) {
- filterTask.subTask(function() {
- container.iterateAllEventsInThisContainer(
- function() { return true; },
- addEventTreeToSelection.bind(undefined, selection));
+ for (var container of this.model_.descendantEventContainers()) {
+ filterTask.subTask(() => {
+ for (var event of container.childEvents())
+ addEventTreeToSelection(selection, event);
}, this);
- }, this);
+ }
return filterTask;
},

Powered by Google App Engine
This is Rietveld 408576698