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

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

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/TimelinePanel.js
diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js
index 1965c8865cdfec4b56cf26552468b09352f747c1..09a53d1511ea2c67cd1e663c7ceb64b0b2a832ba 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -77,7 +77,7 @@ WebInspector.TimelinePanel = function()
// Create model.
if (WebInspector.experimentsSettings.timelineTracingMode.isEnabled() ||
WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled()) {
- this._tracingModel = new WebInspector.TracingModel(WebInspector.targetManager.activeTarget());
+ this._tracingModel = new WebInspector.TracingModel(WebInspector.targetManager.mainTarget());
this._tracingModel.addEventListener(WebInspector.TracingModel.Events.BufferUsage, this._onTracingBufferUsage, this);
this._uiUtils = new WebInspector.TracingTimelineUIUtils();

Powered by Google App Engine
This is Rietveld 408576698