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

Unified Diff: chrome/browser/platform_util_linux.cc

Issue 7258005: Clean up users of a deprecated base::LaunchApp API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/platform_util_linux.cc
diff --git a/chrome/browser/platform_util_linux.cc b/chrome/browser/platform_util_linux.cc
index b795cf9ca158cf7cd723356ef8b0f13dc277981e..9a7b27a226b0503b3c4046815d2a5e6c737a4794 100644
--- a/chrome/browser/platform_util_linux.cc
+++ b/chrome/browser/platform_util_linux.cc
@@ -37,7 +37,10 @@ void XDGUtil(const std::string& util, const std::string& arg) {
base::file_handle_mapping_vector no_files;
base::ProcessHandle handle;
- if (base::LaunchApp(argv, env, no_files, false, &handle))
+ base::LaunchOptions options;
+ options.process_handle = &handle;
+ options.environ = &env;
+ if (base::LaunchProcess(argv, options))
ProcessWatcher::EnsureProcessGetsReaped(handle);
}

Powered by Google App Engine
This is Rietveld 408576698