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

Side by Side Diff: remoting/host/policy_hack/policy_watcher.cc

Issue 10829306: Make curtain-mode controllable by policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698