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

Unified Diff: chrome/browser/chromeos/notifications/notification_panel.cc

Issue 6247002: chromeos: Run beforeunload handlers when closing panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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
Index: chrome/browser/chromeos/notifications/notification_panel.cc
diff --git a/chrome/browser/chromeos/notifications/notification_panel.cc b/chrome/browser/chromeos/notifications/notification_panel.cc
index 4bd0b3a13eed9e24de4e79e4f31d61ea511b1c99..a60705b249a0e5be3cd907742c62c906a311b614 100644
--- a/chrome/browser/chromeos/notifications/notification_panel.cc
+++ b/chrome/browser/chromeos/notifications/notification_panel.cc
@@ -610,6 +610,10 @@ SkBitmap NotificationPanel::GetPanelIcon() {
return SkBitmap();
}
+bool NotificationPanel::CanClosePanel() {
+ return true;
+}
+
void NotificationPanel::ClosePanel() {
SET_STATE(CLOSED);
UpdatePanel(false);

Powered by Google App Engine
This is Rietveld 408576698