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

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

Issue 363343004: DevTools: Unify main thread name across vanilla and tracing timeline modes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/TimelineModelImpl.js
diff --git a/Source/devtools/front_end/timeline/TimelineModelImpl.js b/Source/devtools/front_end/timeline/TimelineModelImpl.js
index 54096f95e9ebb25c004352178236a7973be9bd7f..03828072a23d00639fc0cf019bd5e2763b27559b 100644
--- a/Source/devtools/front_end/timeline/TimelineModelImpl.js
+++ b/Source/devtools/front_end/timeline/TimelineModelImpl.js
@@ -299,6 +299,7 @@ WebInspector.TimelineModel.RecordImpl = function(model, timelineEvent, parentRec
this._model = model;
var bindings = this._model._bindings;
this._record = timelineEvent;
+ this._thread = this._record.thread || WebInspector.TimelineModel.MainThreadName;
this._children = [];
if (parentRecord) {
this.parent = parentRecord;
@@ -422,11 +423,11 @@ WebInspector.TimelineModel.RecordImpl.prototype = {
},
/**
- * @return {string|undefined}
+ * @return {string}
*/
thread: function()
{
- return this._record.thread;
+ return this._thread;
},
/**
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineModel.js ('k') | Source/devtools/front_end/timeline/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698