Commit bda6438c authored by rsesek@chromium.org's avatar rsesek@chromium.org

[Linux] Fix browser relaunching, which broke after enabling NO_NEW_PRIVS by default.

BUG=358713, 361943
TEST=Go to about:flags, change a flag, and click relaunch. The browser starts again.

Review URL: https://codereview.chromium.org/231843007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263046 0039d316-1c4b-4281-b951-d872f2087c98
parent f9594d64
...@@ -23,7 +23,10 @@ double saved_last_modified_time_of_exe = 0; ...@@ -23,7 +23,10 @@ double saved_last_modified_time_of_exe = 0;
namespace upgrade_util { namespace upgrade_util {
bool RelaunchChromeBrowser(const CommandLine& command_line) { bool RelaunchChromeBrowser(const CommandLine& command_line) {
return base::LaunchProcess(command_line, base::LaunchOptions(), NULL); base::LaunchOptions options;
// Don't set NO_NEW_PRIVS on the relaunched browser process.
options.allow_new_privs = true;
return base::LaunchProcess(command_line, options, NULL);
} }
bool IsUpdatePendingRestart() { bool IsUpdatePendingRestart() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment