summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/catapult/tracing/third_party/oboe/src/wrapper.browser.js
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-03-05 17:34:47 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-03-06 10:04:14 +0000
commiteaf1da4d961fbbda9455f9af3b23d1af777f43fa (patch)
tree95970599ecee31c4f7f940bc97ac98c61a3d0cad /chromium/third_party/catapult/tracing/third_party/oboe/src/wrapper.browser.js
parent38a9a29f4f9436cace7f0e7abf9c586057df8a4e (diff)
BASELINE: Update Chromium to 73.0.3683.64
Change-Id: I76517dc277ba4e16bfd7e098fda3d079656b3b9f Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/catapult/tracing/third_party/oboe/src/wrapper.browser.js')
-rw-r--r--chromium/third_party/catapult/tracing/third_party/oboe/src/wrapper.browser.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/chromium/third_party/catapult/tracing/third_party/oboe/src/wrapper.browser.js b/chromium/third_party/catapult/tracing/third_party/oboe/src/wrapper.browser.js
new file mode 100644
index 00000000000..2a7dd9d12f7
--- /dev/null
+++ b/chromium/third_party/catapult/tracing/third_party/oboe/src/wrapper.browser.js
@@ -0,0 +1,24 @@
+// This file is the concatenation of many js files.
+// See http://github.com/jimhigson/oboe.js for the raw source
+
+// having a local undefined, window, Object etc allows slightly better minification:
+(function (window, Object, Array, Error, JSON, undefined ) {
+
+ // ---contents--- //
+
+ if ( typeof define === "function" && define.amd ) {
+ define( "oboe", [], function () { return oboe; } );
+ } else if (typeof exports === 'object') {
+ module.exports = oboe;
+ } else {
+ window.oboe = oboe;
+ }
+})((function(){
+ // Access to the window object throws an exception in HTML5 web workers so
+ // point it to "self" if it runs in a web worker
+ try {
+ return window;
+ } catch (e) {
+ return self;
+ }
+ }()), Object, Array, Error, JSON);