| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/message_center/message_center_util.h" | 5 #include "ui/message_center/message_center_util.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "ui/message_center/message_center_switches.h" | 8 #include "ui/message_center/message_center_switches.h" |
| 9 | 9 |
| 10 namespace message_center { | 10 namespace message_center { |
| 11 | 11 |
| 12 bool IsRichNotificationEnabled() { | 12 bool IsRichNotificationEnabled() { |
| 13 #if defined(OS_WIN) && defined(USE_AURA) | |
| 14 return false; | |
| 15 #else | |
| 16 return CommandLine::ForCurrentProcess()->HasSwitch( | 13 return CommandLine::ForCurrentProcess()->HasSwitch( |
| 17 switches::kEnableRichNotifications); | 14 switches::kEnableRichNotifications); |
| 18 #endif | |
| 19 } | 15 } |
| 20 | 16 |
| 21 } // namespace message_center | 17 } // namespace message_center |
| OLD | NEW |