Chromium Code Reviews| 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 #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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 308 | 308 |
| 309 // Handles RestoreOnStartup policy. | 309 // Handles RestoreOnStartup policy. |
| 310 class RestoreOnStartupPolicyHandler : public SimplePolicyHandler { | 310 class RestoreOnStartupPolicyHandler : public SimplePolicyHandler { |
| 311 public: | 311 public: |
| 312 RestoreOnStartupPolicyHandler(); | 312 RestoreOnStartupPolicyHandler(); |
| 313 virtual ~RestoreOnStartupPolicyHandler(); | 313 virtual ~RestoreOnStartupPolicyHandler(); |
| 314 | 314 |
| 315 // ConfigurationPolicyHandler methods: | 315 // ConfigurationPolicyHandler methods: |
| 316 virtual bool CheckPolicySettings(const PolicyMap& policies, | 316 virtual bool CheckPolicySettings(const PolicyMap& policies, |
| 317 PolicyErrorMap* errors) OVERRIDE; | 317 PolicyErrorMap* errors) OVERRIDE; |
| 318 virtual void ApplyPolicySettings(const PolicyMap& policies, | |
| 319 PrefValueMap* prefs) OVERRIDE; | |
|
Mattias Nissler (ping if slow)
2012/04/19 13:15:55
Now that you also override ApplyPolicySettings, I'
Tyler Breisacher (Chromium)
2012/04/19 19:07:56
Done.
| |
| 318 | 320 |
| 319 private: | 321 private: |
| 322 void ApplyPolicySettingsFromHomePage(const PolicyMap& policies, | |
| 323 PrefValueMap* prefs); | |
| 324 | |
| 320 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler); | 325 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler); |
| 321 }; | 326 }; |
| 322 | 327 |
| 323 } // namespace policy | 328 } // namespace policy |
| 324 | 329 |
| 325 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ | 330 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ |
| OLD | NEW |