Index: chrome/common/extensions/docs/examples/extensions/buildbot/bg.js |
diff --git a/chrome/common/extensions/docs/examples/extensions/buildbot/bg.js b/chrome/common/extensions/docs/examples/extensions/buildbot/bg.js |
index a351678f1b3823ac7a26fe6a7986d308b6165c98..8324e03a1985b6536d75f63d84949962e27a4fcd 100644 |
--- a/chrome/common/extensions/docs/examples/extensions/buildbot/bg.js |
+++ b/chrome/common/extensions/docs/examples/extensions/buildbot/bg.js |
@@ -25,12 +25,12 @@ function updateBadgeOnErrorStatus() { |
var lastNotification = null; |
function notifyStatusChange(treeState, status) { |
if (lastNotification) |
- lastNotification.cancel(); |
+ lastNotification.close(); |
- var notification = webkitNotifications.createNotification( |
- chrome.extension.getURL("icon.png"), "Tree is " + treeState, status); |
- lastNotification = notification; |
- notification.show(); |
+ lastNotification = new Notification("Tree is " + treeState, { |
+ icon: chrome.extension.getURL("icon.png"), |
+ body: status |
+ }); |
} |
// The type parameter should be "open", "closed", or "throttled". |