summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-15 18:47:14 +0000
committerarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-15 18:47:14 +0000
commit618e9818135c61431eed7ca3f641c9de7b1d2b08 (patch)
tree752761ab889e088717c82c3798cf11b0da774d96 /chrome/browser
parent805eaa313253c3dcf96985f5945097316045d66d (diff)
downloadchromium_src-618e9818135c61431eed7ca3f641c9de7b1d2b08.zip
chromium_src-618e9818135c61431eed7ca3f641c9de7b1d2b08.tar.gz
chromium_src-618e9818135c61431eed7ca3f641c9de7b1d2b08.tar.bz2
NTP: Hide the notifier when restoring all removed thumbnails.
BUG=29952 TEST=Blacklist a thumbanil. This shows the notifier. Then restore all remove thumbnails. The notifier should be hidden now. Review URL: http://codereview.chromium.org/494013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34576 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/resources/new_new_tab.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js
index 728a8d4..570e3ea 100644
--- a/chrome/browser/resources/new_new_tab.js
+++ b/chrome/browser/resources/new_new_tab.js
@@ -502,6 +502,7 @@ var mostVisited = {
clearAllBlacklisted: function() {
chrome.send('clearMostVisitedURLsBlacklist', []);
+ hideNotification();
},
updateDisplayMode: function() {
@@ -843,6 +844,9 @@ function showNotification(text, actionText, opt_f, opt_delay) {
delayedHide();
}
+/**
+ * Hides the notifier.
+ */
function hideNotification() {
var notificationElement = $('notification');
removeClass(notificationElement, 'show');