Index: chrome/common/extensions/docs/examples/extensions/buildbot/utils.js |
diff --git a/chrome/common/extensions/docs/examples/extensions/buildbot/utils.js b/chrome/common/extensions/docs/examples/extensions/buildbot/utils.js |
index 9805a2ee11a940f8f28efcb76752309b381e0ce3..ace9ed5946fa41f1f0b9d7d070a3862ea77615dd 100644 |
--- a/chrome/common/extensions/docs/examples/extensions/buildbot/utils.js |
+++ b/chrome/common/extensions/docs/examples/extensions/buildbot/utils.js |
@@ -2,7 +2,12 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-function requestURL(url, responseType, callback, opt_errorStatusCallback) { |
+(function() { |
+ |
+window.buildbot = window.buildbot || {}; |
+ |
+buildbot.requestURL = |
+ function(url, responseType, callback, opt_errorStatusCallback) { |
var xhr = new XMLHttpRequest(); |
if (responseType == "json") |
// WebKit doesn't handle xhr.responseType = "json" as of Chrome 25. |
@@ -29,4 +34,6 @@ function requestURL(url, responseType, callback, opt_errorStatusCallback) { |
xhr.open("GET", url, true); |
xhr.send(); |
-} |
+}; |
+ |
+})(); |