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

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

Issue 3412033: Make feedback failure notification non sticky (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: " Created 10 years, 3 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 | « chrome/browser/chromeos/notifications/system_notification.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/notifications/system_notification.cc
diff --git a/chrome/browser/chromeos/notifications/system_notification.cc b/chrome/browser/chromeos/notifications/system_notification.cc
index b4e5d950c02b5414f13e2a0365b839ddb2874610..28ef884219743ce12007d2b2766d40af2c8bd28c 100644
--- a/chrome/browser/chromeos/notifications/system_notification.cc
+++ b/chrome/browser/chromeos/notifications/system_notification.cc
@@ -39,7 +39,9 @@ SystemNotification::~SystemNotification() {
Hide();
}
-void SystemNotification::Show(const string16& message, bool urgent) {
+void SystemNotification::Show(const string16& message,
+ bool urgent,
+ bool sticky) {
Notification notify = SystemNotificationFactory::Create(icon_,
title_, message, delegate_.get());
if (visible_) {
@@ -50,7 +52,8 @@ void SystemNotification::Show(const string16& message, bool urgent) {
collection_->UpdateNotification(notify);
}
} else {
- collection_->AddSystemNotification(notify, profile_, true /* sticky */,
+ collection_->AddSystemNotification(notify, profile_,
+ sticky,
false /* no controls */);
}
visible_ = true;
« no previous file with comments | « chrome/browser/chromeos/notifications/system_notification.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698