diff options
Diffstat (limited to 'chromium/ui/message_center/message_center_util.cc')
-rw-r--r-- | chromium/ui/message_center/message_center_util.cc | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/chromium/ui/message_center/message_center_util.cc b/chromium/ui/message_center/message_center_util.cc deleted file mode 100644 index 43cd4849418..00000000000 --- a/chromium/ui/message_center/message_center_util.cc +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "ui/message_center/message_center_util.h" - -#include "base/command_line.h" -#include "ui/message_center/message_center_switches.h" - -namespace message_center { - -// TODO(dimich): remove this function and the kEnableRichNotifications flag -// when a time period in Canary indicates the new notifications are acceptable -// for default behavior. -bool IsRichNotificationEnabled() { -#if defined(OS_CHROMEOS) - return true; -#elif !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(USE_AURA) - return false; -#endif - - if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kDisableRichNotifications)) { - return false; - } - if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableRichNotifications)) { - return true; - } - - return true; -} - -bool IsExperimentalNotificationUIEnabled() { - return CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableExperimentalNotificationUI); -} - -} // namespace message_center |