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

Unified Diff: chrome/browser/shell_integration_linux.cc

Issue 2950153002: Improve process launch handle sharing API. (Closed)
Patch Set: Merge Created 3 years, 5 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
Index: chrome/browser/shell_integration_linux.cc
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
index a3cc1fa1a972e401ea94cd6511833674dcf52cd7..195ea49b39cbd9eaa5810723c950e9a2bcbde74d 100644
--- a/chrome/browser/shell_integration_linux.cc
+++ b/chrome/browser/shell_integration_linux.cc
@@ -72,11 +72,9 @@ bool LaunchXdgUtility(const std::vector<std::string>& argv, int* exit_code) {
int devnull = open("/dev/null", O_RDONLY);
if (devnull < 0)
return false;
- base::FileHandleMappingVector no_stdin;
- no_stdin.push_back(std::make_pair(devnull, STDIN_FILENO));
base::LaunchOptions options;
- options.fds_to_remap = &no_stdin;
+ options.fds_to_remap.push_back(std::make_pair(devnull, STDIN_FILENO));
base::Process process = base::LaunchProcess(argv, options);
close(devnull);
if (!process.IsValid())
« no previous file with comments | « chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.cc ('k') | chrome/installer/util/user_experiment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698