Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: content/common/BUILD.gn

Issue 2523253002: Convert use_seccomp_bpf to the BUILDFLAG system. (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/BUILD.gn ('k') | content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/BUILD.gn
diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn
index 4d49b09bfd3eaf54c8c3391500ece920f50d60af..3f3fb75fd0e0dcf46c1f49c00abd6510a249190e 100644
--- a/content/common/BUILD.gn
+++ b/content/common/BUILD.gn
@@ -7,6 +7,7 @@ import("//build/config/ui.gni")
import("//media/media_options.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//ppapi/features/features.gni")
+import("//sandbox/features.gni")
import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
if (is_mac) {
import("//build/config/mac/mac_sdk.gni")
@@ -390,6 +391,7 @@ source_set("common") {
"//net",
"//ppapi/features",
"//sandbox",
+ "//sandbox:sandbox_features",
"//services/service_manager",
"//services/service_manager/public/cpp",
"//services/service_manager/public/interfaces",
@@ -501,9 +503,7 @@ source_set("common") {
sources -= [ "cursors/webcursor_aurawin.cc" ]
}
- if (use_seccomp_bpf) {
- defines += [ "USE_SECCOMP_BPF" ]
- } else {
+ if (!use_seccomp_bpf) {
if (is_linux) {
sources -= [
"sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc",
« no previous file with comments | « content/BUILD.gn ('k') | content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698