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

Unified Diff: trunk/src/ui/message_center/message_center_util.cc

Issue 14631021: Revert 199625 "Remove ENABLE_MESSAGE_CENTER" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 | « trunk/src/ui/message_center/message_center_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/message_center/message_center_util.cc
===================================================================
--- trunk/src/ui/message_center/message_center_util.cc (revision 199638)
+++ trunk/src/ui/message_center/message_center_util.cc (working copy)
@@ -13,23 +13,17 @@
// when a time period in Canary indicates the new notifications are acceptable
// for default behavior.
bool IsRichNotificationEnabled() {
-#if !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(USE_ASH)
- return false;
-#endif
-
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableRichNotifications))
return false;
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableRichNotifications))
return true;
-
-// Not enabled by default on Mac yet.
#if defined(OS_MACOSX)
return false;
-#endif
-
+#else
return true;
+#endif
}
} // namespace message_center
« no previous file with comments | « trunk/src/ui/message_center/message_center_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698