OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/url_blacklist_policy_handler.h" | 5 #include "components/policy/core/browser/url_blacklist_policy_handler.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/prefs/pref_value_map.h" | |
11 #include "base/values.h" | 10 #include "base/values.h" |
12 #include "components/policy/core/browser/policy_error_map.h" | 11 #include "components/policy/core/browser/policy_error_map.h" |
13 #include "components/policy/core/common/policy_map.h" | 12 #include "components/policy/core/common/policy_map.h" |
14 #include "components/policy/core/common/policy_pref_names.h" | 13 #include "components/policy/core/common/policy_pref_names.h" |
| 14 #include "components/prefs/pref_value_map.h" |
15 #include "grit/components_strings.h" | 15 #include "grit/components_strings.h" |
16 #include "policy/policy_constants.h" | 16 #include "policy/policy_constants.h" |
17 | 17 |
18 namespace policy { | 18 namespace policy { |
19 | 19 |
20 URLBlacklistPolicyHandler::URLBlacklistPolicyHandler() {} | 20 URLBlacklistPolicyHandler::URLBlacklistPolicyHandler() {} |
21 | 21 |
22 URLBlacklistPolicyHandler::~URLBlacklistPolicyHandler() {} | 22 URLBlacklistPolicyHandler::~URLBlacklistPolicyHandler() {} |
23 | 23 |
24 bool URLBlacklistPolicyHandler::CheckPolicySettings(const PolicyMap& policies, | 24 bool URLBlacklistPolicyHandler::CheckPolicySettings(const PolicyMap& policies, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 if (disabled_schemes || url_blacklist) { | 81 if (disabled_schemes || url_blacklist) { |
82 prefs->SetValue(policy_prefs::kUrlBlacklist, | 82 prefs->SetValue(policy_prefs::kUrlBlacklist, |
83 std::move(merged_url_blacklist)); | 83 std::move(merged_url_blacklist)); |
84 } | 84 } |
85 } | 85 } |
86 | 86 |
87 } // namespace policy | 87 } // namespace policy |
OLD | NEW |