| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/policy_handlers.h" | 5 #include "chrome/browser/extensions/policy_handlers.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/prefs/pref_value_map.h" | 8 #include "base/prefs/pref_value_map.h" |
| 9 #include "chrome/browser/extensions/external_policy_loader.h" | 9 #include "chrome/browser/extensions/external_policy_loader.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 232 } |
| 233 | 233 |
| 234 return true; | 234 return true; |
| 235 } | 235 } |
| 236 | 236 |
| 237 void ExtensionURLPatternListPolicyHandler::ApplyPolicySettings( | 237 void ExtensionURLPatternListPolicyHandler::ApplyPolicySettings( |
| 238 const policy::PolicyMap& policies, | 238 const policy::PolicyMap& policies, |
| 239 PrefValueMap* prefs) { | 239 PrefValueMap* prefs) { |
| 240 if (!pref_path_) | 240 if (!pref_path_) |
| 241 return; | 241 return; |
| 242 const Value* value = policies.GetValue(policy_name()); | 242 const base::Value* value = policies.GetValue(policy_name()); |
| 243 if (value) | 243 if (value) |
| 244 prefs->SetValue(pref_path_, value->DeepCopy()); | 244 prefs->SetValue(pref_path_, value->DeepCopy()); |
| 245 } | 245 } |
| 246 | 246 |
| 247 } // namespace extensions | 247 } // namespace extensions |
| OLD | NEW |