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

Unified Diff: tracing/tracing/base/sorted_array_utils.html

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: more changes from code review 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
« no previous file with comments | « tracing/tracing/base/settings.html ('k') | tracing/tracing/base/statistics.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/sorted_array_utils.html
diff --git a/tracing/tracing/base/sorted_array_utils.html b/tracing/tracing/base/sorted_array_utils.html
index 44d4c80fff23ddf713ded1bc13fe633838547ab3..3352f9487ad039785e7aac4c0300679640574eda 100644
--- a/tracing/tracing/base/sorted_array_utils.html
+++ b/tracing/tracing/base/sorted_array_utils.html
@@ -30,7 +30,7 @@ tr.exportTo('tr.b', function() {
* the array.
*/
function findLowIndexInSortedArray(ary, mapFn, loVal) {
- if (ary.length == 0)
+ if (ary.length === 0)
return 1;
var low = 0;
@@ -50,7 +50,7 @@ tr.exportTo('tr.b', function() {
}
}
// return where we hit, or failing that the low pos
- return hitPos != -1 ? hitPos : low;
+ return hitPos !== -1 ? hitPos : low;
}
// From devtools/front_end/platform/utilities.js upperBound
@@ -91,7 +91,7 @@ tr.exportTo('tr.b', function() {
*/
function findIndexInSortedIntervals(ary, mapLoFn, mapWidthFn, loVal) {
var first = findLowIndexInSortedArray(ary, mapLoFn, loVal);
- if (first == 0) {
+ if (first === 0) {
if (loVal >= mapLoFn(ary[0]) &&
loVal < mapLoFn(ary[0]) + mapWidthFn(ary[0], 0)) {
return 0;
@@ -109,7 +109,7 @@ tr.exportTo('tr.b', function() {
} else {
return ary.length;
}
- } else if (first == ary.length) {
+ } else if (first === ary.length) {
if (loVal >= mapLoFn(ary[first - 1]) &&
loVal < mapLoFn(ary[first - 1]) +
mapWidthFn(ary[first - 1], first - 1)) {
@@ -165,7 +165,7 @@ tr.exportTo('tr.b', function() {
} else {
return ary.length;
}
- } else if (i == ary.length) {
+ } else if (i === ary.length) {
if (val >= mapLoFn(ary[i - 1], i - 1) &&
val <= mapHiFn(ary[i - 1], i - 1)) {
return i - 1;
@@ -198,13 +198,13 @@ tr.exportTo('tr.b', function() {
*/
function iterateOverIntersectingIntervals(ary, mapLoFn, mapWidthFn, loVal,
hiVal, cb) {
- if (ary.length == 0)
+ if (ary.length === 0)
return;
if (loVal > hiVal) return;
var i = findLowIndexInSortedArray(ary, mapLoFn, loVal);
- if (i == -1) {
+ if (i === -1) {
return;
}
if (i > 0) {
@@ -213,7 +213,7 @@ tr.exportTo('tr.b', function() {
cb(ary[i - 1], i - 1);
}
}
- if (i == ary.length) {
+ if (i === ary.length) {
return;
}
« no previous file with comments | « tracing/tracing/base/settings.html ('k') | tracing/tracing/base/statistics.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698