1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24

ash / accelerators / accelerator_prefs_delegate.h [blame]

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_ACCELERATORS_ACCELERATOR_PREFS_DELEGATE_H_
#define ASH_ACCELERATORS_ACCELERATOR_PREFS_DELEGATE_H_

#include "ash/ash_export.h"

namespace ash {

// AcceleratorPrefsDelegate serves as an abstract interface that contains
// function to determine whether user is managed. The AcceleratorPrefs can not
// do this directly because ProfileManager and UserManager are in //chrome.
class ASH_EXPORT AcceleratorPrefsDelegate {
 public:
  virtual ~AcceleratorPrefsDelegate() = default;

  // Return true if the user is managed user.
  virtual bool IsUserEnterpriseManaged() const = 0;
};
}  // namespace ash

#endif  // ASH_ACCELERATORS_ACCELERATOR_PREFS_DELEGATE_H_