[M85 Dev][EFL] Fix crashes at webview launch
[platform/framework/web/chromium-efl.git] / base / enterprise_util_win.cc
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 "base/enterprise_util.h"
6
7 #include "base/win/win_util.h"
8
9 namespace base {
10
11 bool 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