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

Unified Diff: chrome/browser/first_run/upgrade_util_linux.cc

Issue 231843007: [Linux] Fix browser relaunching, which broke after enabling NO_NEW_PRIVS by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run/upgrade_util_linux.cc
diff --git a/chrome/browser/first_run/upgrade_util_linux.cc b/chrome/browser/first_run/upgrade_util_linux.cc
index 3a1003138ffff1400d44fbe8e56514c905cfcdf8..4fbe33b5c3eb515fbcb6157e4d50d134e7d65c9e 100644
--- a/chrome/browser/first_run/upgrade_util_linux.cc
+++ b/chrome/browser/first_run/upgrade_util_linux.cc
@@ -23,7 +23,10 @@ double saved_last_modified_time_of_exe = 0;
namespace upgrade_util {
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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698