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

Unified Diff: src/platform/minijail/interface.cc

Issue 465106: Add build and package support to minijail (Closed)
Patch Set: Created 11 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 | « src/platform/minijail/debian/rules ('k') | src/platform/minijail/make_pkg.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/minijail/interface.cc
diff --git a/src/platform/minijail/interface.cc b/src/platform/minijail/interface.cc
index 4cabff067fa74297a0c9579ef89e5bfee5e5a400..7686330d296b1dd5adeadaad3119b2056e476420 100644
--- a/src/platform/minijail/interface.cc
+++ b/src/platform/minijail/interface.cc
@@ -13,7 +13,14 @@ namespace chromeos {
namespace minijail {
bool Interface::Run() const {
- LOG_IF(FATAL, !options()->executable_path()) << "No executable path given.";
+ if (!options() || !options()->env()) {
+ LOG(ERROR) << "Initialize() not called or called with bad Env";
+ return false;
+ }
+ if (!options()->executable_path()) {
+ LOG(ERROR) << "No executable path given.";
+ return false;
+ }
return options()->env()->Run(options()->executable_path(),
options()->arguments(),
options()->environment());
« no previous file with comments | « src/platform/minijail/debian/rules ('k') | src/platform/minijail/make_pkg.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698