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

Unified Diff: content/public/common/sandbox_init.h

Issue 1419083012: Create a field trial for Seccomp-BPF on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix define issue Created 5 years, 1 month 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
Index: content/public/common/sandbox_init.h
diff --git a/content/public/common/sandbox_init.h b/content/public/common/sandbox_init.h
index 1a312339ee8e58013604c64283055cdcbe102edb..c8389e8db64398451182a300bedfef5735f3d2e8 100644
--- a/content/public/common/sandbox_init.h
+++ b/content/public/common/sandbox_init.h
@@ -13,6 +13,10 @@
#include "build/build_config.h"
#include "content/common/content_export.h"
+#if defined(OS_ANDROID)
+#include "base/feature_list.h"
+#endif
+
namespace base {
class CommandLine;
class FilePath;
@@ -113,6 +117,11 @@ CONTENT_EXPORT scoped_ptr<sandbox::bpf_dsl::Policy>
GetBPFSandboxBaselinePolicy();
#endif // defined(OS_LINUX) || defined(OS_NACL_NONSFI)
+#if defined(OS_ANDROID)
+// FeatureList definition for the Seccomp field trial.
+CONTENT_EXPORT extern const base::Feature kSeccompSandboxAndroidFeature;
jam 2015/11/13 17:20:17 hmm, as we convert switches to base::Feature, seem
Alexei Svitkine (slow) 2015/11/13 17:33:02 I am okay with a centralized place for features at
Robert Sesek 2015/11/14 01:18:03 I agree that it'd be good to centralize these. I a
+#endif // defined(OS_ANDROID)
+
} // namespace content
#endif // CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/renderer/renderer_main_platform_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698