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

Unified Diff: Source/devtools/front_end/timeline/TracingModel.js

Issue 322783002: Initialize min/max record time to 0 instead of -1 or null (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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: Source/devtools/front_end/timeline/TracingModel.js
diff --git a/Source/devtools/front_end/timeline/TracingModel.js b/Source/devtools/front_end/timeline/TracingModel.js
index 77cf1e72bfc62248836fe39fa447fc2e70c7ff5f..29fa713edf907e88d28b702087f5a119a2d45755 100644
--- a/Source/devtools/front_end/timeline/TracingModel.js
+++ b/Source/devtools/front_end/timeline/TracingModel.js
@@ -168,8 +168,8 @@ WebInspector.TracingModel.prototype = {
reset: function()
{
this._processById = {};
- this._minimumRecordTime = null;
- this._maximumRecordTime = null;
+ this._minimumRecordTime = 0;
+ this._maximumRecordTime = 0;
this._sessionId = null;
this._devtoolsMetadataEvents = [];
},
@@ -222,7 +222,7 @@ WebInspector.TracingModel.prototype = {
},
/**
- * @return {?number}
+ * @return {number}
*/
minimumRecordTime: function()
{
@@ -230,7 +230,7 @@ WebInspector.TracingModel.prototype = {
},
/**
- * @return {?number}
+ * @return {number}
*/
maximumRecordTime: function()
{
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineView.js ('k') | Source/devtools/front_end/timeline/TracingTimelineModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698