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

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

Issue 224183002: mac: Remove dead NotificationUIManagerMac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hmm Created 6 years, 9 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 | « base/mac/cocoa_protocols.h ('k') | chrome/browser/notifications/notification_ui_manager_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/notification_ui_manager.cc
diff --git a/chrome/browser/notifications/notification_ui_manager.cc b/chrome/browser/notifications/notification_ui_manager.cc
index dc622be426062402d0f8c7581fb99abfcec0c6eb..84fe1aa8d1d5a8e1ef232a387d55448b6b68a160 100644
--- a/chrome/browser/notifications/notification_ui_manager.cc
+++ b/chrome/browser/notifications/notification_ui_manager.cc
@@ -28,7 +28,6 @@ bool NotificationUIManager::DelegatesToMessageCenter() {
return message_center::IsRichNotificationEnabled();
}
-#if !defined(OS_MACOSX)
// static
NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
if (DelegatesToMessageCenter()) {
@@ -47,6 +46,10 @@ NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
// the dependent classes there.
CHECK(false);
return NULL;
+#elif defined(OS_MACOSX) || defined(USE_AURA)
+ // IsRichNotificationEnabled() always returns true in this case.
+ CHECK(false);
+ return NULL;
#else
BalloonNotificationUIManager* balloon_manager =
new BalloonNotificationUIManager(local_state);
@@ -54,4 +57,3 @@ NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
return balloon_manager;
#endif
}
-#endif
« no previous file with comments | « base/mac/cocoa_protocols.h ('k') | chrome/browser/notifications/notification_ui_manager_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698