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 "content/renderer/renderer_main_platform_delegate.h" | 5 #include "content/renderer/renderer_main_platform_delegate.h" |
6 | 6 |
7 #include "base/android/build_info.h" | 7 #include "base/android/build_info.h" |
8 #include "base/feature_list.h" | 8 #include "base/feature_list.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
10 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
11 | 12 |
12 #ifdef USE_SECCOMP_BPF | 13 #ifdef USE_SECCOMP_BPF |
13 #include "content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.h
" | 14 #include "content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.h
" |
14 #include "content/public/common/content_features.h" | 15 #include "content/public/common/content_features.h" |
15 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" | 16 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" |
16 #endif | 17 #endif |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 118 |
118 status_uma.set_status(RecordSeccompStatus::ENGAGED); | 119 status_uma.set_status(RecordSeccompStatus::ENGAGED); |
119 } else { | 120 } else { |
120 status_uma.set_status(RecordSeccompStatus::FEATURE_DISABLED); | 121 status_uma.set_status(RecordSeccompStatus::FEATURE_DISABLED); |
121 } | 122 } |
122 #endif | 123 #endif |
123 return true; | 124 return true; |
124 } | 125 } |
125 | 126 |
126 } // namespace content | 127 } // namespace content |
OLD | NEW |