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

Unified Diff: tracing/tracing/ui/tracks/process_summary_track.html

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: Created 4 years, 2 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/ui/tracks/process_summary_track.html
diff --git a/tracing/tracing/ui/tracks/process_summary_track.html b/tracing/tracing/ui/tracks/process_summary_track.html
index 4390766292d60657ac339021d3c22feb4765843f..9069ca86abea361fa30d09376ce5f1dc9c6dffd7 100644
--- a/tracing/tracing/ui/tracks/process_summary_track.html
+++ b/tracing/tracing/ui/tracks/process_summary_track.html
@@ -76,7 +76,7 @@ tr.exportTo('tr.ui.tracks', function() {
if (currentSlice) {
// simply find end of current important slice
- if (!op.isStart && op.slice == currentSlice) {
+ if (!op.isStart && op.slice === currentSlice) {
// important slice has ended
pushRect(lastStart, op.time, currentSlice);
lastStart = depth >= 1 ? op.time : undefined;
@@ -84,19 +84,19 @@ tr.exportTo('tr.ui.tracks', function() {
}
} else {
if (op.isStart) {
- if (depth == 1) {
+ if (depth === 1) {
lastStart = op.time;
currentSlice = op.slice;
} else if (op.slice) {
// switch to slice
- if (op.time != lastStart) {
+ if (op.time !== lastStart) {
pushRect(lastStart, op.time, undefined);
lastStart = op.time;
}
currentSlice = op.slice;
}
} else {
- if (depth == 0) {
+ if (depth === 0) {
pushRect(lastStart, op.time, undefined);
lastStart = undefined;
}

Powered by Google App Engine
This is Rietveld 408576698