| 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 #include "components/policy/core/browser/configuration_policy_handler.h" | 5 #include "components/policy/core/browser/configuration_policy_handler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 ConfigurationPolicyHandler::ConfigurationPolicyHandler() { | 42 ConfigurationPolicyHandler::ConfigurationPolicyHandler() { |
| 43 } | 43 } |
| 44 | 44 |
| 45 ConfigurationPolicyHandler::~ConfigurationPolicyHandler() { | 45 ConfigurationPolicyHandler::~ConfigurationPolicyHandler() { |
| 46 } | 46 } |
| 47 | 47 |
| 48 void ConfigurationPolicyHandler::PrepareForDisplaying( | 48 void ConfigurationPolicyHandler::PrepareForDisplaying( |
| 49 PolicyMap* policies) const {} | 49 PolicyMap* policies) const {} |
| 50 | 50 |
| 51 void ConfigurationPolicyHandler::ApplyPolicySettingsWithPars( |
| 52 const PolicyMap& policies, |
| 53 const PolicyHandlerParameters& pars, |
| 54 PrefValueMap* prefs) { |
| 55 ApplyPolicySettings(policies, prefs); |
| 56 } |
| 51 | 57 |
| 52 // TypeCheckingPolicyHandler implementation ------------------------------------ | 58 // TypeCheckingPolicyHandler implementation ------------------------------------ |
| 53 | 59 |
| 54 TypeCheckingPolicyHandler::TypeCheckingPolicyHandler( | 60 TypeCheckingPolicyHandler::TypeCheckingPolicyHandler( |
| 55 const char* policy_name, | 61 const char* policy_name, |
| 56 base::Value::Type value_type) | 62 base::Value::Type value_type) |
| 57 : policy_name_(policy_name), | 63 : policy_name_(policy_name), |
| 58 value_type_(value_type) { | 64 value_type_(value_type) { |
| 59 } | 65 } |
| 60 | 66 |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 for (handler = legacy_policy_handlers_.begin(); | 410 for (handler = legacy_policy_handlers_.begin(); |
| 405 handler != legacy_policy_handlers_.end(); | 411 handler != legacy_policy_handlers_.end(); |
| 406 ++handler) { | 412 ++handler) { |
| 407 if ((*handler)->CheckPolicySettings(policies, &scoped_errors)) | 413 if ((*handler)->CheckPolicySettings(policies, &scoped_errors)) |
| 408 (*handler)->ApplyPolicySettings(policies, prefs); | 414 (*handler)->ApplyPolicySettings(policies, prefs); |
| 409 } | 415 } |
| 410 } | 416 } |
| 411 } | 417 } |
| 412 | 418 |
| 413 } // namespace policy | 419 } // namespace policy |
| OLD | NEW |