Skip to content

Commit

Permalink
Handle undefined TimelineAsyncSlice.subSlices in about:tracing.
Browse files Browse the repository at this point in the history
BUG=123113
TEST=timeline_track_test.html


Review URL: http://codereview.chromium.org/10008088

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132062 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
simonjam@chromium.org committed Apr 12, 2012
1 parent b7cc532 commit d78e2b2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions chrome/browser/resources/tracing/timeline_model.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,11 @@ cr.define('tracing', function() {
}
if (!found) {
var subRow = [];
for (var k = 0; k < slice.subSlices.length; k++)
subRow.push(slice.subSlices[k]);
subRows.push(subRow);
if (slice.subSlices !== undefined) {
for (var k = 0; k < slice.subSlices.length; k++)
subRow.push(slice.subSlices[k]);
subRows.push(subRow);
}
}
}
this.subRows_ = subRows;
Expand Down

0 comments on commit d78e2b2

Please sign in to comment.