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 "chrome/browser/extensions/api/messaging/native_messaging_policy_handle
r.h" | 5 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle
r.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/api/messaging/native_messaging_host_manifest
.h" | 9 #include "chrome/browser/extensions/api/messaging/native_messaging_host_manifest
.h" |
10 #include "chrome/browser/extensions/external_policy_loader.h" | 10 #include "chrome/browser/extensions/external_policy_loader.h" |
11 #include "chrome/common/pref_names.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 "grit/components_strings.h" | 13 #include "grit/components_strings.h" |
15 #include "policy/policy_constants.h" | 14 #include "policy/policy_constants.h" |
16 | 15 |
17 namespace extensions { | 16 namespace extensions { |
18 | 17 |
19 NativeMessagingHostListPolicyHandler::NativeMessagingHostListPolicyHandler( | 18 NativeMessagingHostListPolicyHandler::NativeMessagingHostListPolicyHandler( |
20 const char* policy_name, | 19 const char* policy_name, |
21 const char* pref_path, | 20 const char* pref_path, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 filtered_list->Append(new base::StringValue(name)); | 83 filtered_list->Append(new base::StringValue(name)); |
85 } | 84 } |
86 | 85 |
87 if (names) | 86 if (names) |
88 *names = filtered_list.Pass(); | 87 *names = filtered_list.Pass(); |
89 | 88 |
90 return true; | 89 return true; |
91 } | 90 } |
92 | 91 |
93 } // namespace extensions | 92 } // namespace extensions |
OLD | NEW |