OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Most of this code is copied from: | 5 // Most of this code is copied from: |
6 // src/chrome/browser/policy/asynchronous_policy_loader.{h,cc} | 6 // src/chrome/browser/policy/asynchronous_policy_loader.{h,cc} |
7 | 7 |
8 #include "remoting/host/policy_hack/policy_watcher.h" | 8 #include "remoting/host/policy_hack/policy_watcher.h" |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 "RemoteAccessHostDomain"; | 116 "RemoteAccessHostDomain"; |
117 | 117 |
118 const char PolicyWatcher::kHostTalkGadgetPrefixPolicyName[] = | 118 const char PolicyWatcher::kHostTalkGadgetPrefixPolicyName[] = |
119 "RemoteAccessHostTalkGadgetPrefix"; | 119 "RemoteAccessHostTalkGadgetPrefix"; |
120 | 120 |
121 const char PolicyWatcher::kHostRequireCurtainPolicyName[] = | 121 const char PolicyWatcher::kHostRequireCurtainPolicyName[] = |
122 "RemoteAccessHostRequireCurtain"; | 122 "RemoteAccessHostRequireCurtain"; |
123 | 123 |
124 const char* const PolicyWatcher::kBooleanPolicyNames[] = | 124 const char* const PolicyWatcher::kBooleanPolicyNames[] = |
125 { PolicyWatcher::kNatPolicyName, | 125 { PolicyWatcher::kNatPolicyName, |
126 PolicyWatcher::kHostRequireTwoFactorPolicyName | 126 PolicyWatcher::kHostRequireTwoFactorPolicyName, |
| 127 PolicyWatcher::kHostRequireCurtainPolicyName |
127 }; | 128 }; |
128 | 129 |
129 const int PolicyWatcher::kBooleanPolicyNamesNum = | 130 const int PolicyWatcher::kBooleanPolicyNamesNum = |
130 arraysize(kBooleanPolicyNames); | 131 arraysize(kBooleanPolicyNames); |
131 | 132 |
132 const char* const PolicyWatcher::kStringPolicyNames[] = | 133 const char* const PolicyWatcher::kStringPolicyNames[] = |
133 { PolicyWatcher::kHostDomainPolicyName, | 134 { PolicyWatcher::kHostDomainPolicyName, |
134 PolicyWatcher::kHostTalkGadgetPrefixPolicyName | 135 PolicyWatcher::kHostTalkGadgetPrefixPolicyName |
135 }; | 136 }; |
136 | 137 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 old_policies_.swap(new_policies); | 219 old_policies_.swap(new_policies); |
219 | 220 |
220 // Notify our client of the changed policies. | 221 // Notify our client of the changed policies. |
221 if (!changed_policies->empty()) { | 222 if (!changed_policies->empty()) { |
222 policy_callback_.Run(changed_policies.Pass()); | 223 policy_callback_.Run(changed_policies.Pass()); |
223 } | 224 } |
224 } | 225 } |
225 | 226 |
226 } // namespace policy_hack | 227 } // namespace policy_hack |
227 } // namespace remoting | 228 } // namespace remoting |
OLD | NEW |