Roll third_party/android_tools to the latest: updated the support library to 19.0.1
[chromium-blink-merge.git] / ui / message_center / message_center_util.cc
blob43cd4849418b02154631c19b9309cfc928f1dab0
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
3 // found in the LICENSE file.
5 #include "ui/message_center/message_center_util.h"
7 #include "base/command_line.h"
8 #include "ui/message_center/message_center_switches.h"
10 namespace message_center {
12 // TODO(dimich): remove this function and the kEnableRichNotifications flag
13 // when a time period in Canary indicates the new notifications are acceptable
14 // for default behavior.
15 bool IsRichNotificationEnabled() {
16 #if defined(OS_CHROMEOS)
17 return true;
18 #elif !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(USE_AURA)
19 return false;
20 #endif
22 if (CommandLine::ForCurrentProcess()->HasSwitch(
23 switches::kDisableRichNotifications)) {
24 return false;
26 if (CommandLine::ForCurrentProcess()->HasSwitch(
27 switches::kEnableRichNotifications)) {
28 return true;
31 return true;
34 bool IsExperimentalNotificationUIEnabled() {
35 return CommandLine::ForCurrentProcess()->HasSwitch(
36 switches::kEnableExperimentalNotificationUI);
39 } // namespace message_center