Commit 17cd0c71 authored by tfarina@chromium.org's avatar tfarina@chromium.org

Update Chromium Buildbot Monitor extension.

It is using a now defunct webkit notifications API and thus with recent
versions of Chrome a notification balloon that used to appear in the
right bottom does not appear anymore.

This patches makes the changes necessary so the notification balloon
appears again.

BUG=None
TEST=None
R=peter@chromium.org,miket@chromium.org

Review URL: https://codereview.chromium.org/420103003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286141 0039d316-1c4b-4281-b951-d872f2087c98
parent 8b994e19
...@@ -25,12 +25,12 @@ function updateBadgeOnErrorStatus() { ...@@ -25,12 +25,12 @@ function updateBadgeOnErrorStatus() {
var lastNotification = null; var lastNotification = null;
function notifyStatusChange(treeState, status) { function notifyStatusChange(treeState, status) {
if (lastNotification) if (lastNotification)
lastNotification.cancel(); lastNotification.close();
var notification = webkitNotifications.createNotification( lastNotification = new Notification("Tree is " + treeState, {
chrome.extension.getURL("icon.png"), "Tree is " + treeState, status); icon: chrome.extension.getURL("icon.png"),
lastNotification = notification; body: status
notification.show(); });
} }
// The type parameter should be "open", "closed", or "throttled". // The type parameter should be "open", "closed", or "throttled".
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment