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

Unified Diff: tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.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
Index: tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html
diff --git a/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html b/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html
index d6ca756bb193ae1bd16e02070d06088baa45e15d..a33e614813ed8714b117affdb17b2663e97085d3 100644
--- a/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html
+++ b/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html
@@ -20,13 +20,13 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
data = null;
return new Promise(function(resolve, reject) {
var req = new XMLHttpRequest();
- if (method != 'POST' && data !== null)
+ if (method !== 'POST' && data !== null)
throw new Error('Non-POST should have data==null');
req.open(method, path, true);
req.onreadystatechange = function(e) {
- if (req.readyState == 4) {
+ if (req.readyState === 4) {
window.setTimeout(function() {
- if (req.status == 200 && req.responseText != '##ERROR##') {
+ if (req.status === 200 && req.responseText !== '##ERROR##') {
resolve(req.responseText);
} else {
reject(new Error('Error occured at ' + path));

Powered by Google App Engine
This is Rietveld 408576698