blob: be378bf7a5f3608a417ba4bb18a2d19316d52789 [file] [log] [blame]
Hector Carmonac3565bc2019-02-01 23:31:21 +00001// 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 "base/enterprise_util.h"
6
7#include "base/win/win_util.h"
8
9namespace base {
10
11bool IsMachineExternallyManaged() {
12 // TODO(rogerta): this function should really be:
13 //
14 // return IsEnrolledToDomain() || IsDeviceRegisteredWithManagement();
15 //
16 // However, for now it is decided to collect some UMA metrics about
17 // IsDeviceRegisteredWithMdm() before changing chrome's behavior.
18 return base::win::IsEnrolledToDomain();
19}
20
21} // namespace base