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

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

Issue 397313003: DevTools: Remove target function from TimelineModel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase once more Created 6 years, 5 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/TracingTimelineModel.js
diff --git a/Source/devtools/front_end/timeline/TracingTimelineModel.js b/Source/devtools/front_end/timeline/TracingTimelineModel.js
index a36ac1da0d1105d68cdcaf46f74d9c1bfa71ec9f..b96417e342b9ebe054cc620d803392b7fc1c034e 100644
--- a/Source/devtools/front_end/timeline/TracingTimelineModel.js
+++ b/Source/devtools/front_end/timeline/TracingTimelineModel.js
@@ -10,7 +10,7 @@
*/
WebInspector.TracingTimelineModel = function(tracingModel, recordFilter)
{
- WebInspector.TimelineModel.call(this, tracingModel.target());
+ WebInspector.TimelineModel.call(this);
this._tracingModel = tracingModel;
this._inspectedTargetEvents = [];
this._recordFilter = recordFilter;
@@ -610,7 +610,8 @@ WebInspector.TracingTimelineModel.TraceEventRecord.prototype = {
*/
target: function()
{
- return this._model.target();
+ //FIXME: get it from this._event
+ return WebInspector.targetManager.targets()[0];
},
/**
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | Source/devtools/front_end/timeline/TracingTimelineUIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698