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

Unified Diff: chrome/common/extensions/docs/examples/extensions/buildbot/utils.js

Issue 18401004: Continuously update status in the buildbot extension popup window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add copyright Created 7 years, 5 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 | « chrome/common/extensions/docs/examples/extensions/buildbot/try_status.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
-}
+};
+
+})();
« no previous file with comments | « chrome/common/extensions/docs/examples/extensions/buildbot/try_status.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698