| 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::ApplyPolicySettings( | 
|  | 52     const policy::PolicyMap& policies, | 
|  | 53     PrefValueMap* prefs) { | 
|  | 54   NOTREACHED(); | 
|  | 55 } | 
|  | 56 | 
|  | 57 void ConfigurationPolicyHandler::ApplyPolicySettingsWithParameters( | 
|  | 58     const PolicyMap& policies, | 
|  | 59     const PolicyHandlerParameters& parameters, | 
|  | 60     PrefValueMap* prefs) { | 
|  | 61   ApplyPolicySettings(policies, prefs); | 
|  | 62 } | 
| 51 | 63 | 
| 52 // TypeCheckingPolicyHandler implementation ------------------------------------ | 64 // TypeCheckingPolicyHandler implementation ------------------------------------ | 
| 53 | 65 | 
| 54 TypeCheckingPolicyHandler::TypeCheckingPolicyHandler( | 66 TypeCheckingPolicyHandler::TypeCheckingPolicyHandler( | 
| 55     const char* policy_name, | 67     const char* policy_name, | 
| 56     base::Value::Type value_type) | 68     base::Value::Type value_type) | 
| 57     : policy_name_(policy_name), | 69     : policy_name_(policy_name), | 
| 58       value_type_(value_type) { | 70       value_type_(value_type) { | 
| 59 } | 71 } | 
| 60 | 72 | 
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 404     for (handler = legacy_policy_handlers_.begin(); | 416     for (handler = legacy_policy_handlers_.begin(); | 
| 405          handler != legacy_policy_handlers_.end(); | 417          handler != legacy_policy_handlers_.end(); | 
| 406          ++handler) { | 418          ++handler) { | 
| 407       if ((*handler)->CheckPolicySettings(policies, &scoped_errors)) | 419       if ((*handler)->CheckPolicySettings(policies, &scoped_errors)) | 
| 408         (*handler)->ApplyPolicySettings(policies, prefs); | 420         (*handler)->ApplyPolicySettings(policies, prefs); | 
| 409     } | 421     } | 
| 410   } | 422   } | 
| 411 } | 423 } | 
| 412 | 424 | 
| 413 }  // namespace policy | 425 }  // namespace policy | 
| OLD | NEW | 
|---|