diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 21:28:44 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 21:28:44 +0000 |
commit | 3055aeee5bff4151d660a191fa370e4162898489 (patch) | |
tree | 07bb2b2de16385d932cbbb38dc3ff8c16d7063be /chrome/browser/utility_process_host.cc | |
parent | 542258c2719723200e46a45fdd7dc571ed5b90cf (diff) | |
download | chromium_src-3055aeee5bff4151d660a191fa370e4162898489.zip chromium_src-3055aeee5bff4151d660a191fa370e4162898489.tar.gz chromium_src-3055aeee5bff4151d660a191fa370e4162898489.tar.bz2 |
Fix crash in utility process when running chrome with --no-sandbox.
BUG=74114
TEST=Run chrome with --no-sandbox, install an extension. It should succeed.
Review URL: http://codereview.chromium.org/6615026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76970 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/utility_process_host.cc')
-rw-r--r-- | chrome/browser/utility_process_host.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/utility_process_host.cc b/chrome/browser/utility_process_host.cc index 98502c9..c715377 100644 --- a/chrome/browser/utility_process_host.cc +++ b/chrome/browser/utility_process_host.cc @@ -132,6 +132,8 @@ bool UtilityProcessHost::StartProcess(const FilePath& exposed_dir) { const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); if (browser_command_line.HasSwitch(switches::kChromeFrame)) cmd_line->AppendSwitch(switches::kChromeFrame); + if (browser_command_line.HasSwitch(switches::kNoSandbox)) + cmd_line->AppendSwitch(switches::kNoSandbox); if (browser_command_line.HasSwitch( switches::kEnableExperimentalExtensionApis)) { |