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

Unified Diff: ui/message_center/message_center_util.cc

Issue 12635010: Start building message_center on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MessageCenterNotificationsTest Created 7 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 | « ui/message_center/message_center_tray_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_center_util.cc
diff --git a/ui/message_center/message_center_util.cc b/ui/message_center/message_center_util.cc
index 3b1f1e7e01175179bdd843d31eb7a32b6eb23979..de2a06f5b28dee0c01d8f006012ed170c979ba46 100644
--- a/ui/message_center/message_center_util.cc
+++ b/ui/message_center/message_center_util.cc
@@ -13,7 +13,12 @@ namespace message_center {
// when a time period in Canary indicates the new notifications are acceptable
// for default behavior.
bool IsRichNotificationEnabled() {
+#if defined(OS_MACOSX)
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableRichNotifications);
+#else
return true;
+#endif
}
} // namespace message_center
« no previous file with comments | « ui/message_center/message_center_tray_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698