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

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

Issue 402633002: DevTools: Remove redundant dependency on target from TimelineFrameModel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address caseq comments 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
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineTracingView.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0261d4ab0f0950f818222deade090011bc08ab06..fab309a6135aee4e06b8aa68f74ef8394e83b327 100644
--- a/Source/devtools/front_end/timeline/TracingModel.js
+++ b/Source/devtools/front_end/timeline/TracingModel.js
@@ -467,6 +467,16 @@ WebInspector.TracingModel.Thread = function(process, id)
}
WebInspector.TracingModel.Thread.prototype = {
+
+ /**
+ * @return {?WebInspector.Target}
+ */
+ target: function()
+ {
+ //FIXME: correctly specify target
+ return WebInspector.targetManager.targets()[0];
+ },
+
/**
* @param {!WebInspector.TracingModel.EventPayload} payload
* @return {?WebInspector.TracingModel.Event} event
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineTracingView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698