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

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

Issue 1211613002: Timeline: check category presence in list, not string equality (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed tracing-session-id.html Created 5 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
« no previous file with comments | « Source/devtools/front_end/sdk/TracingModel.js ('k') | Source/devtools/front_end/timeline/TimelineModel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TimelineFlameChart.js
diff --git a/Source/devtools/front_end/timeline/TimelineFlameChart.js b/Source/devtools/front_end/timeline/TimelineFlameChart.js
index 63ae2aa8e3f097e7e0cc669f39ccd64075721fec..0193173d7b4d19dc3182dcb22e6615eb8d459cb3 100644
--- a/Source/devtools/front_end/timeline/TimelineFlameChart.js
+++ b/Source/devtools/front_end/timeline/TimelineFlameChart.js
@@ -545,7 +545,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
}
var category = WebInspector.TimelineUIUtils.eventStyle(event).category;
if (WebInspector.TracingModel.isAsyncPhase(event.phase)) {
- if (event.category === WebInspector.TracingModel.ConsoleEventCategory)
+ if (event.hasCategory(WebInspector.TracingModel.ConsoleEventCategory))
return this._consoleColorGenerator.colorForID(event.name);
var color = this._asyncColorByCategory[category.name];
if (color)
« no previous file with comments | « Source/devtools/front_end/sdk/TracingModel.js ('k') | Source/devtools/front_end/timeline/TimelineModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698