Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: components/update_client/updater_state_win.cc

Issue 2581353002: Use the Windows MDM API to check if the machine is being managed. (Closed)
Patch Set: rebased Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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::IsEnterpriseManaged() {
137 return base::win::IsEnrolledToDomain(); 137 return base::win::IsEnterpriseManaged();
138 } 138 }
139 139
140 } // namespace update_client 140 } // namespace update_client
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698