#include "base/base_paths.h"
#include "base/command_line.h"
-#include "base/file_util.h"
#include "base/files/file_path.h"
+#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
-#include "base/platform_file.h"
#include "base/process/launch.h"
#include "chrome/browser/first_run/upgrade_util_linux.h"
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() {