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

Unified Diff: chrome/browser/notifications/message_center_notification_manager.cc

Issue 1509923002: Implement native web notifications for mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/notifications/message_center_notification_manager.cc
diff --git a/chrome/browser/notifications/message_center_notification_manager.cc b/chrome/browser/notifications/message_center_notification_manager.cc
index 9ac4fc3cfccc56754e702642320dfaf15e8afb21..4464fe62999647ddb3e4f70f83a2b947b58b8db9 100644
--- a/chrome/browser/notifications/message_center_notification_manager.cc
+++ b/chrome/browser/notifications/message_center_notification_manager.cc
@@ -47,8 +47,7 @@ MessageCenterNotificationManager::MessageCenterNotificationManager(
settings_provider_(settings_provider.Pass()),
system_observer_(this),
stats_collector_(message_center),
- google_now_stats_collector_(message_center)
-{
+ google_now_stats_collector_(message_center) {
message_center_->AddObserver(this);
message_center_->SetNotifierSettingsProvider(settings_provider_.get());
@@ -269,6 +268,10 @@ void MessageCenterNotificationManager::CancelAll() {
message_center_->RemoveAllNotifications(/* by_user */ false);
}
+bool MessageCenterNotificationManager::AcceptNativeNotifications() {
+ return false;
+}
+
////////////////////////////////////////////////////////////////////////////////
// MessageCenter::Observer
void MessageCenterNotificationManager::OnNotificationRemoved(

Powered by Google App Engine
This is Rietveld 408576698