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_list.h" | 5 #include "components/policy/core/browser/configuration_policy_handler_list.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "components/policy/core/browser/configuration_policy_handler.h" | 9 #include "components/policy/core/browser/configuration_policy_handler.h" |
10 #include "components/policy/core/browser/configuration_policy_handler_parameters
.h" | 10 #include "components/policy/core/browser/configuration_policy_handler_parameters
.h" |
11 #include "components/policy/core/browser/policy_error_map.h" | 11 #include "components/policy/core/browser/policy_error_map.h" |
12 #include "components/prefs/pref_value_map.h" | 12 #include "components/prefs/pref_value_map.h" |
13 #include "grit/components_strings.h" | 13 #include "components/strings/grit/components_strings.h" |
14 | 14 |
15 namespace policy { | 15 namespace policy { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 // Don't show errors for policies starting with that prefix. | 19 // Don't show errors for policies starting with that prefix. |
20 const char kPolicyCommentPrefix[] = "_comment"; | 20 const char kPolicyCommentPrefix[] = "_comment"; |
21 | 21 |
22 } // namespace | 22 } // namespace |
23 | 23 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 if (iter->second.source == POLICY_SOURCE_PLATFORM && | 96 if (iter->second.source == POLICY_SOURCE_PLATFORM && |
97 policy_details->is_device_policy) { | 97 policy_details->is_device_policy) { |
98 // Device Policy is only implemented as Cloud Policy (not Platform Policy). | 98 // Device Policy is only implemented as Cloud Policy (not Platform Policy). |
99 LOG(WARNING) << "Ignoring device platform policy: " << iter->first; | 99 LOG(WARNING) << "Ignoring device platform policy: " << iter->first; |
100 return true; | 100 return true; |
101 } | 101 } |
102 return false; | 102 return false; |
103 } | 103 } |
104 | 104 |
105 } // namespace policy | 105 } // namespace policy |
OLD | NEW |