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

Unified Diff: tracing/tracing/extras/chrome/cc/input_latency_async_slice.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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
« no previous file with comments | « tracing/tracing/base/utils_test.html ('k') | tracing/tracing/extras/chrome/chrome_test_utils.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/extras/chrome/cc/input_latency_async_slice.html
diff --git a/tracing/tracing/extras/chrome/cc/input_latency_async_slice.html b/tracing/tracing/extras/chrome/cc/input_latency_async_slice.html
index 44871935d2adcaac82c2af1e1a9b97485f520ec4..30d0e620b535fdeff684029dbd75e4d70d537bee 100644
--- a/tracing/tracing/extras/chrome/cc/input_latency_async_slice.html
+++ b/tracing/tracing/extras/chrome/cc/input_latency_async_slice.html
@@ -4,9 +4,10 @@ Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
-<link rel="import" href="/tracing/model/helpers/chrome_model_helper.html">
+
<link rel="import" href="/tracing/model/async_slice.html">
<link rel="import" href="/tracing/model/event_set.html">
+<link rel="import" href="/tracing/model/helpers/chrome_model_helper.html">
<script>
'use strict';
@@ -122,17 +123,17 @@ tr.exportTo('tr.e.cc', function() {
determineLegacyTypeName_: function() {
// Iterate over all descendent subSlices.
- this.iterateAllDescendents(function(subSlice) {
+ for (var subSlice of this.enumerateAllDescendents()) {
// If |subSlice| is not an InputLatencyAsyncSlice, then ignore it.
var subSliceIsAInputLatencyAsyncSlice = (
subSlice instanceof InputLatencyAsyncSlice);
if (!subSliceIsAInputLatencyAsyncSlice)
- return;
+ continue;
// If |subSlice| does not have a typeName, then ignore it.
if (!subSlice.typeName)
- return;
+ continue;
// If |this| already has a typeName and |subSlice| has a different
// typeName, then explode!
@@ -148,7 +149,7 @@ tr.exportTo('tr.e.cc', function() {
// The typeName of |this| top-level event is whatever the typeName of
// |subSlice| is. Set |this.typeName_| to the subSlice's typeName.
this.typeName_ = subSlice.typeName_;
- }, this);
+ }
// If typeName could not be determined, then explode!
if (!this.typeName_)
« no previous file with comments | « tracing/tracing/base/utils_test.html ('k') | tracing/tracing/extras/chrome/chrome_test_utils.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698