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

Unified Diff: tracing/tracing/base/category_util.html

Issue 2020813002: Rewrite LoadExpectation to v1.0. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: . Created 4 years, 7 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 | « no previous file | tracing/tracing/extras/importer/trace_event_importer.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/category_util.html
diff --git a/tracing/tracing/base/category_util.html b/tracing/tracing/base/category_util.html
index 71fd210dd7ef9f4e8a093becbf7fbdb230f2ca86..f586f15d8d9ba66b5651b06dd58e9f7c4b995042 100644
--- a/tracing/tracing/base/category_util.html
+++ b/tracing/tracing/base/category_util.html
@@ -35,8 +35,13 @@ tr.exportTo('tr.b', function() {
return parts;
}
+ function hasCategory(haystack, needle) {
+ return getCategoryParts(haystack).indexOf(needle) >= 0;
+ }
+
return {
- getCategoryParts: getCategoryParts
+ getCategoryParts: getCategoryParts,
+ hasCategory: hasCategory
};
});
</script>
« no previous file with comments | « no previous file | tracing/tracing/extras/importer/trace_event_importer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698