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

Unified Diff: components/nacl/zygote/nacl_fork_delegate_linux.cc

Issue 676323002: Non-SFI mode: Add --use-nacl-helper-nonsfi flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « components/nacl/common/nacl_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/zygote/nacl_fork_delegate_linux.cc
diff --git a/components/nacl/zygote/nacl_fork_delegate_linux.cc b/components/nacl/zygote/nacl_fork_delegate_linux.cc
index 5a67af07cf64cb3056b92c7be5202050e1435ace..2b13cfbe830f04c143af94a92724f4cad3221349 100644
--- a/components/nacl/zygote/nacl_fork_delegate_linux.cc
+++ b/components/nacl/zygote/nacl_fork_delegate_linux.cc
@@ -188,7 +188,9 @@ void NaClForkDelegate::Init(const int sandboxdesc,
status_ = kNaClHelperUnused;
base::FilePath helper_exe;
base::FilePath helper_bootstrap_exe;
- if (!PathService::Get(nacl::FILE_NACL_HELPER, &helper_exe)) {
+ if (!PathService::Get(
+ nonsfi_mode_ ? nacl::FILE_NACL_HELPER_NONSFI : nacl::FILE_NACL_HELPER,
+ &helper_exe)) {
status_ = kNaClHelperMissing;
} else if (use_nacl_bootstrap &&
!PathService::Get(nacl::FILE_NACL_HELPER_BOOTSTRAP,
« no previous file with comments | « components/nacl/common/nacl_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698