// 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 {

bool IsRichNotificationEnabled() {
  return CommandLine::ForCurrentProcess()->HasSwitch(
      switches::kEnableRichNotifications);
}

}  // namespace message_center

// 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 {

bool IsRichNotificationEnabled() {
#if defined(OS_WIN) && defined(USE_AURA)
  return false;
#else
  return CommandLine::ForCurrentProcess()->HasSwitch(
      switches::kEnableRichNotifications);
#endif
}

}  // namespace message_center

Fix for crash trying to deference ash::Shell::message_center()
Fix for crash trying to deference ash::Shell::message_center()

Because we don't really have a operational ash::shell in
windows 7 or earlier.

So we need to default to the non-rich one

BUG=178429
TEST=see bug
Review URL: https://codereview.chromium.org/12328129

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@185075 0039d316-1c4b-4281-b951-d872f2087c98
