OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/update_client/updater_state.h" | 5 #include "components/update_client/updater_state.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 // Try to read default override. | 127 // Try to read default override. |
128 if (policy_key.ReadValueDW(kUpdatePolicyValue, &value) == ERROR_SUCCESS && | 128 if (policy_key.ReadValueDW(kUpdatePolicyValue, &value) == ERROR_SUCCESS && |
129 value <= kMaxUpdatePolicyValue) { | 129 value <= kMaxUpdatePolicyValue) { |
130 return value; | 130 return value; |
131 } | 131 } |
132 | 132 |
133 return -1; | 133 return -1; |
134 } | 134 } |
135 | 135 |
136 bool UpdaterState::IsJoinedToDomain() { | 136 bool UpdaterState::IsEnterpriseUser() { |
137 return base::win::IsEnrolledToDomain(); | 137 return base::win::IsEnterpriseUser(); |
138 } | 138 } |
139 | 139 |
140 } // namespace update_client | 140 } // namespace update_client |
OLD | NEW |