Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/policy/configuration_policy_provider.h" | 5 #include "chrome/browser/policy/configuration_policy_provider.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "chrome/common/notification_service.h" | 8 #include "chrome/common/notification_service.h" |
| 9 | 9 |
| 10 namespace policy { | 10 namespace policy { |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 const PolicyDefinitionList* policy_list(policy_definition_list()); | 29 const PolicyDefinitionList* policy_list(policy_definition_list()); |
| 30 for (const PolicyDefinitionList::Entry* i = policy_list->begin; | 30 for (const PolicyDefinitionList::Entry* i = policy_list->begin; |
| 31 i != policy_list->end; ++i) { | 31 i != policy_list->end; ++i) { |
| 32 Value* value; | 32 Value* value; |
| 33 if (policies->Get(i->name, &value) && value->IsType(i->value_type)) | 33 if (policies->Get(i->name, &value) && value->IsType(i->value_type)) |
| 34 store->Apply(i->policy_type, value->DeepCopy()); | 34 store->Apply(i->policy_type, value->DeepCopy()); |
| 35 } | 35 } |
| 36 | 36 |
| 37 // TODO(mnissler): Handle preference overrides once |ConfigurationPolicyStore| | 37 // TODO(mnissler): Handle preference overrides once |ConfigurationPolicyStore| |
| 38 // supports it. | 38 // supports it. |
| 39 | |
| 40 store->Completed(); | |
|
danno
2010/12/21 16:16:38
I don't know if this is the right place to put thi
battre (please use the other)
2010/12/21 20:14:09
Gone.
| |
| 39 } | 41 } |
| 40 | 42 |
| 41 } // namespace policy | 43 } // namespace policy |
| OLD | NEW |