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

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 1161053004: Move the SeccompSupportDetector to be in-process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 years, 6 months 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 | « chrome/utility/chrome_content_utility_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/chrome_content_utility_client.cc
diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
index 700e6a0d67bf4c1183e3c5261c5b001164d516e7..9671be86427ef4c633dadcc7efaa03b4caec723c 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -38,10 +38,6 @@
#include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
#endif
-#if defined(OS_ANDROID) && defined(USE_SECCOMP_BPF)
-#include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
-#endif
-
#if defined(OS_WIN)
#include "chrome/utility/font_cache_handler_win.h"
#include "chrome/utility/shell_handler_win.h"
@@ -204,10 +200,6 @@ bool ChromeContentUtilityClient::OnMessageReceived(
#if defined(OS_CHROMEOS)
IPC_MESSAGE_HANDLER(ChromeUtilityMsg_CreateZipFile, OnCreateZipFile)
#endif
-#if defined(OS_ANDROID) && defined(USE_SECCOMP_BPF)
- IPC_MESSAGE_HANDLER(ChromeUtilityMsg_DetectSeccompSupport,
- OnDetectSeccompSupport)
-#endif
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -334,21 +326,6 @@ void ChromeContentUtilityClient::OnCreateZipFile(
}
#endif // defined(OS_CHROMEOS)
-#if defined(OS_ANDROID) && defined(USE_SECCOMP_BPF)
-void ChromeContentUtilityClient::OnDetectSeccompSupport() {
- bool supports_prctl = sandbox::SandboxBPF::SupportsSeccompSandbox(
- sandbox::SandboxBPF::SeccompLevel::SINGLE_THREADED);
- Send(new ChromeUtilityHostMsg_DetectSeccompSupport_ResultPrctl(
- supports_prctl));
-
- // Probing for the seccomp syscall can provoke kernel panics in certain LGE
- // devices. For now, this data will not be collected. In the future, this
- // should detect SeccompLevel::MULTI_THREADED. http://crbug.com/478478
-
- ReleaseProcessIfNeeded();
-}
-#endif // defined(OS_ANDROID) && defined(USE_SECCOMP_BPF)
-
#if defined(OS_CHROMEOS)
void ChromeContentUtilityClient::OnRobustJPEGDecodeImage(
const std::vector<unsigned char>& encoded_data,
« no previous file with comments | « chrome/utility/chrome_content_utility_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698