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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler.h

Issue 12088040: Add a SigninAllowed policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT, another try to upload. Created 7 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 | 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 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 virtual ~SyncPolicyHandler(); 214 virtual ~SyncPolicyHandler();
215 215
216 // ConfigurationPolicyHandler methods: 216 // ConfigurationPolicyHandler methods:
217 virtual void ApplyPolicySettings(const PolicyMap& policies, 217 virtual void ApplyPolicySettings(const PolicyMap& policies,
218 PrefValueMap* prefs) OVERRIDE; 218 PrefValueMap* prefs) OVERRIDE;
219 219
220 private: 220 private:
221 DISALLOW_COPY_AND_ASSIGN(SyncPolicyHandler); 221 DISALLOW_COPY_AND_ASSIGN(SyncPolicyHandler);
222 }; 222 };
223 223
224 // ConfigurationPolicyHandler for the SigninAllowed policy.
225 class SigninPolicyHandler: public TypeCheckingPolicyHandler {
Joao da Silva 2013/02/07 15:36:37 This class isn't ever instantiated, so the policy
Adrian Kuegel 2013/02/07 16:08:59 Thanks, I understand now that this special handlin
Joao da Silva 2013/02/07 16:13:05 Sounds good. Did you forget to upload that patch?
226 public:
227 SigninPolicyHandler();
228 virtual ~SigninPolicyHandler();
229
230 // ConfigurationPolicyHandler methods:
231 virtual void ApplyPolicySettings(const PolicyMap& policies,
232 PrefValueMap* prefs) OVERRIDE;
233
234 private:
235 DISALLOW_COPY_AND_ASSIGN(SigninPolicyHandler);
236 };
237
224 // ConfigurationPolicyHandler for the AutofillEnabled policy. 238 // ConfigurationPolicyHandler for the AutofillEnabled policy.
225 class AutofillPolicyHandler : public TypeCheckingPolicyHandler { 239 class AutofillPolicyHandler : public TypeCheckingPolicyHandler {
226 public: 240 public:
227 AutofillPolicyHandler(); 241 AutofillPolicyHandler();
228 virtual ~AutofillPolicyHandler(); 242 virtual ~AutofillPolicyHandler();
229 243
230 // ConfigurationPolicyHandler methods: 244 // ConfigurationPolicyHandler methods:
231 virtual void ApplyPolicySettings(const PolicyMap& policies, 245 virtual void ApplyPolicySettings(const PolicyMap& policies,
232 PrefValueMap* prefs) OVERRIDE; 246 PrefValueMap* prefs) OVERRIDE;
233 247
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 private: 472 private:
459 void ApplyPolicySettingsFromHomePage(const PolicyMap& policies, 473 void ApplyPolicySettingsFromHomePage(const PolicyMap& policies,
460 PrefValueMap* prefs); 474 PrefValueMap* prefs);
461 475
462 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler); 476 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler);
463 }; 477 };
464 478
465 } // namespace policy 479 } // namespace policy
466 480
467 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ 481 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698