1 // Copyright 2019 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.
4 
5 #include "content/public/browser/media_keys_listener_manager.h"
6 
7 #if !defined(OS_CHROMEOS)
8 #include "base/feature_list.h"
9 #include "media/base/media_switches.h"
10 #endif
11 
12 namespace content {
13 
14 // static
IsMediaKeysListenerManagerEnabled()15 bool MediaKeysListenerManager::IsMediaKeysListenerManagerEnabled() {
16 #if defined(OS_CHROMEOS)
17   return false;
18 #else
19   return base::FeatureList::IsEnabled(media::kHardwareMediaKeyHandling);
20 #endif
21 }
22 
23 MediaKeysListenerManager::~MediaKeysListenerManager() = default;
24 
25 }  // namespace content
26