ui: Fix "Uncaught ReferenceError: window is not defined" am: 04cf908c76 am: 4250de69b2
ui: Fix "Uncaught ReferenceError: window is not defined" am: 04cf908c76 am: 4250de69b2

Original change: https://android-review.googlesource.com/c/platform/external/perfetto/+/1382428

Change-Id: If4346c9b58a2e10f4173e235e8d1cfff524fc7e3

google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto