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

Unified Diff: net/test/test_server_posix.cc

Issue 7346017: Clean up users of a deprecated base::LaunchApp API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros 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: net/test/test_server_posix.cc
diff --git a/net/test/test_server_posix.cc b/net/test/test_server_posix.cc
index 10e5b8b8011a5e4492c730c8eb1fb567238031d9..a3abc69efd6aa036e05b8838f096834ae7d5e74b 100644
--- a/net/test/test_server_posix.cc
+++ b/net/test/test_server_posix.cc
@@ -122,10 +122,11 @@ bool TestServer::LaunchPython(const FilePath& testserver_path) {
}
// Launch a new testserver process.
- if (!base::LaunchApp(python_command.argv(), map_write_fd, false,
- &process_handle_)) {
- LOG(ERROR) << "Failed to launch " << python_command.command_line_string()
- << " ...";
+ base::LaunchOptions options;
+ options.fds_to_remap = &map_write_fd;
+ options.process_handle = &process_handle_;
+ if (!base::LaunchProcess(python_command, options)) {
+ LOG(ERROR) << "Failed to launch " << python_command.command_line_string();
return false;
}
« chrome/browser/chromeos/input_method/xkeyboard.cc ('K') | « content/browser/zygote_host_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698