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

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

Issue 717243002: Timeline: do not imply event.thread.target is the main target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove test expectation from moved test Created 6 years, 1 month 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/TimelineModel.js
diff --git a/Source/devtools/front_end/timeline/TimelineModel.js b/Source/devtools/front_end/timeline/TimelineModel.js
index 3c3850326f2d3a2a4465f3b296d1cd1ad142ecc4..add80a24cd575be6173fb56ff1259557d9d40a0a 100644
--- a/Source/devtools/front_end/timeline/TimelineModel.js
+++ b/Source/devtools/front_end/timeline/TimelineModel.js
@@ -499,6 +499,15 @@ WebInspector.TimelineModel.prototype = {
},
/**
+ * @return {?WebInspector.Target}
+ */
+ target: function()
+ {
+ // FIXME: Consider returning null for loaded traces.
+ return this._tracingManager.target();
+ },
+
+ /**
* @param {!Array.<!WebInspector.TracingManager.EventPayload>} events
*/
setEventsForTest: function(events)

Powered by Google App Engine
This is Rietveld 408576698