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

Unified Diff: chrome/browser/mac/relauncher.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: chrome/browser/mac/relauncher.cc
diff --git a/chrome/browser/mac/relauncher.cc b/chrome/browser/mac/relauncher.cc
index 95944038092665ac9e4d3fa10d95056d264d7c4b..07f8e79851b99dab2a2eae8d88c53a9542a2093b 100644
--- a/chrome/browser/mac/relauncher.cc
+++ b/chrome/browser/mac/relauncher.cc
@@ -153,8 +153,10 @@ bool RelaunchAppWithHelper(const std::string& helper,
base::file_handle_mapping_vector fd_map;
fd_map.push_back(std::make_pair(*pipe_write_fd, kRelauncherSyncFD));
- if (!base::LaunchApp(relaunch_args, fd_map, false, NULL)) {
- LOG(ERROR) << "base::LaunchApp failed";
+ base::LaunchOptions options;
+ options.fds_to_remap = &fd_map;
+ if (!base::LaunchProcess(relaunch_args, options)) {
+ LOG(ERROR) << "base::LaunchProcess failed";
return false;
}

Powered by Google App Engine
This is Rietveld 408576698