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

Side by Side Diff: tracing/tracing/value/diagnostics/related_histogram_map.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2016 The Chromium Authors. All rights reserved. 3 Copyright 2016 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/iteration_helpers.html"> 8 <link rel="import" href="/tracing/base/iteration_helpers.html">
9 <link rel="import" href="/tracing/value/diagnostics/diagnostic.html"> 9 <link rel="import" href="/tracing/value/diagnostics/diagnostic.html">
10 <link rel="import" href="/tracing/value/diagnostics/histogram_ref.html"> 10 <link rel="import" href="/tracing/value/diagnostics/histogram_ref.html">
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 */ 107 */
108 add(hist) { 108 add(hist) {
109 this.set(hist.name, hist); 109 this.set(hist.name, hist);
110 } 110 }
111 111
112 get length() { 112 get length() {
113 return this.histogramsByName_.size; 113 return this.histogramsByName_.size;
114 } 114 }
115 115
116 * [Symbol.iterator]() { 116 * [Symbol.iterator]() {
117 for (let pair of this.histogramsByName_) 117 for (let pair of this.histogramsByName_) {
118 yield pair; 118 yield pair;
119 }
119 } 120 }
120 121
121 /** 122 /**
122 * Resolve all HistogramRefs into Histograms by looking up their guids in 123 * Resolve all HistogramRefs into Histograms by looking up their guids in
123 * |histograms|. 124 * |histograms|.
124 * If a Histogram cannot be found and |opt_required| is true, then throw an 125 * If a Histogram cannot be found and |opt_required| is true, then throw an
125 * Error. 126 * Error.
126 * If a Histogram cannot be found and |opt_required| is false, then the 127 * If a Histogram cannot be found and |opt_required| is false, then the
127 * HistogramRef will remain a HistogramRef. 128 * HistogramRef will remain a HistogramRef.
128 * 129 *
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 162
162 tr.v.d.Diagnostic.register(RelatedHistogramMap, { 163 tr.v.d.Diagnostic.register(RelatedHistogramMap, {
163 elementName: 'tr-v-ui-related-histogram-map-span' 164 elementName: 'tr-v-ui-related-histogram-map-span'
164 }); 165 });
165 166
166 return { 167 return {
167 RelatedHistogramMap, 168 RelatedHistogramMap,
168 }; 169 };
169 }); 170 });
170 </script> 171 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698