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

Unified Diff: tracing/tracing/base/xhr.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/base/xhr.html
diff --git a/tracing/tracing/base/xhr.html b/tracing/tracing/base/xhr.html
index b4835f72ab8be1f9e426b80610a9275161223cb9..cde65905a0130d364e5c8c577deca65456549c61 100644
--- a/tracing/tracing/base/xhr.html
+++ b/tracing/tracing/base/xhr.html
@@ -35,7 +35,7 @@ tr.exportTo('tr.b', function() {
if (!async) {
req.send(data);
- if (req.status == 200) {
+ if (req.status === 200) {
return req.responseText;
} else {
throw new Error('XHR failed with status ' + req.status);
@@ -44,9 +44,9 @@ tr.exportTo('tr.b', function() {
var p = new Promise(function(resolve, reject) {
req.onreadystatechange = function(aEvt) {
- if (req.readyState == 4) {
+ if (req.readyState === 4) {
window.setTimeout(function() {
- if (req.status == 200) {
+ if (req.status === 200) {
if (req.responseType === 'arraybuffer')
return resolve(req.response);
return resolve(req.responseText);

Powered by Google App Engine
This is Rietveld 408576698