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

Unified Diff: tracing/tracing/model/object_instance.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/model/object_collection.html ('k') | tracing/tracing/model/process_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/object_instance.html
diff --git a/tracing/tracing/model/object_instance.html b/tracing/tracing/model/object_instance.html
index db16f814be8fc8ab4adadb22a76f89f0cb2bc549..7dcd853f94972a7ae6e0f56ef91ad70234561b47 100644
--- a/tracing/tracing/model/object_instance.html
+++ b/tracing/tracing/model/object_instance.html
@@ -64,7 +64,7 @@ tr.exportTo('tr.model', function() {
var lastSnapshot;
if (this.snapshots.length > 0) {
lastSnapshot = this.snapshots[this.snapshots.length - 1];
- if (lastSnapshot.ts == ts)
+ if (lastSnapshot.ts === ts)
throw new Error('Snapshots already exists at this time!');
if (ts < lastSnapshot.ts) {
throw new Error(
@@ -74,10 +74,10 @@ tr.exportTo('tr.model', function() {
// Update baseTypeName if needed.
if (opt_name &&
- (this.name != opt_name)) {
+ (this.name !== opt_name)) {
if (!opt_baseTypeName)
throw new Error('Must provide base type name for name update');
- if (this.baseTypeName != opt_baseTypeName)
+ if (this.baseTypeName !== opt_baseTypeName)
throw new Error('Cannot update type name: base types dont match');
this.name = opt_name;
}
@@ -142,7 +142,7 @@ tr.exportTo('tr.model', function() {
snapshots,
function(snapshot) { return snapshot.ts; },
function(snapshot, i) {
- if (i == snapshots.length - 1)
+ if (i === snapshots.length - 1)
return snapshots[i].objectInstance.deletionTs;
return snapshots[i + 1].ts - snapshots[i].ts;
},
@@ -163,7 +163,7 @@ tr.exportTo('tr.model', function() {
updateBounds: function() {
this.bounds.reset();
this.bounds.addValue(this.creationTs);
- if (this.deletionTs != Number.MAX_VALUE)
+ if (this.deletionTs !== Number.MAX_VALUE)
this.bounds.addValue(this.deletionTs);
else if (this.snapshots.length > 0)
this.bounds.addValue(this.snapshots[this.snapshots.length - 1].ts);
@@ -171,7 +171,7 @@ tr.exportTo('tr.model', function() {
shiftTimestampsForward: function(amount) {
this.creationTs += amount;
- if (this.deletionTs != Number.MAX_VALUE)
+ if (this.deletionTs !== Number.MAX_VALUE)
this.deletionTs += amount;
this.snapshots.forEach(function(snapshot) {
snapshot.ts += amount;
« no previous file with comments | « tracing/tracing/model/object_collection.html ('k') | tracing/tracing/model/process_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698