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

Unified Diff: Tools/GardeningServer/scripts/ui.js

Issue 173133003: Convert garden-o-matic guts over to promises where appropriate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update to ToT Created 6 years, 10 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 | « Tools/GardeningServer/scripts/svn-log_unittests.js ('k') | Tools/GardeningServer/scripts/ui/results.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/scripts/ui.js
diff --git a/Tools/GardeningServer/scripts/ui.js b/Tools/GardeningServer/scripts/ui.js
index bb8ab59299c29757183596204ebf3b4300bca8f9..ed5f27a210356ca90caff9c8e07ce68097b20191 100644
--- a/Tools/GardeningServer/scripts/ui.js
+++ b/Tools/GardeningServer/scripts/ui.js
@@ -334,12 +334,12 @@ ui.revisionDetails = base.extends('span', {
theSpan.appendChild(document.createTextNode(', trunk is at '));
theSpan.appendChild(base.createLinkNode(trac.changesetURL(totRevision), totRevision));
- checkout.lastBlinkRollRevision(function(revision) {
+ checkout.lastBlinkRollRevision().then(function(revision) {
theSpan.appendChild(document.createTextNode(', last roll is to '));
theSpan.appendChild(base.createLinkNode(trac.changesetURL(revision), revision));
}, function() {});
- rollbot.fetchCurrentRoll(function(roll) {
+ rollbot.fetchCurrentRoll().then(function(roll) {
theSpan.appendChild(document.createTextNode(', current autoroll '));
if (roll) {
var linkText = "" + roll.fromRevision + ":" + roll.toRevision;
« no previous file with comments | « Tools/GardeningServer/scripts/svn-log_unittests.js ('k') | Tools/GardeningServer/scripts/ui/results.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698