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

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

Issue 1417883005: Enable vulcanizing perf_insights mapper Base URL: https://github.com/catapult-project/catapult@master
Patch Set: Undo changes to vinn Created 5 years, 1 month 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 | « third_party/py_vulcanize/py_vulcanize/generate.py ('k') | tracing/tracing/extras/importer/jszip.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/base.html
diff --git a/tracing/tracing/base/base.html b/tracing/tracing/base/base.html
index 9c9254b6c7f3ac8e79ce9745cef4437dc32602b5..983d86f5d5b6c15b20892e0368ac86f499350dd0 100644
--- a/tracing/tracing/base/base.html
+++ b/tracing/tracing/base/base.html
@@ -175,6 +175,14 @@ this.tr = (function() {
tr.isLinux = /Linux/.test(navigator.userAgent);
}
tr.isHeadless = tr.isVinn || tr.isNode;
+
+ // Workaround for Library requiring window.
+ if (tr.isHeadless) {
+ /**
+ * Hack.
+ */
+ global.window = {};
+ }
}
return {
« no previous file with comments | « third_party/py_vulcanize/py_vulcanize/generate.py ('k') | tracing/tracing/extras/importer/jszip.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698