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

Unified Diff: chrome/browser/process_info_snapshot_mac_unittest.cc

Issue 7346017: 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/process_info_snapshot_mac_unittest.cc
diff --git a/chrome/browser/process_info_snapshot_mac_unittest.cc b/chrome/browser/process_info_snapshot_mac_unittest.cc
index 64d1c84ef761daddfe3d687bdd792f4f80bcab80..c5176d4af5ae3e1a8a7d6c90a532b63cf5af9067 100644
--- a/chrome/browser/process_info_snapshot_mac_unittest.cc
+++ b/chrome/browser/process_info_snapshot_mac_unittest.cc
@@ -111,7 +111,10 @@ TEST_F(ProcessInfoSnapshotMacTest, EffectiveVsRealUserIDTest) {
argv.push_back("0");
base::ProcessHandle process_handle;
- ASSERT_TRUE(base::LaunchApp(argv, fds_to_remap, false, &process_handle));
+ base::LaunchOptions options;
+ options.fds_to_remap = &fds_to_remap;
+ options.process_handle = &process_handle;
+ ASSERT_TRUE(base::LaunchProcess(argv, options));
PCHECK(HANDLE_EINTR(close(fds[1])) == 0);
// Wait until there's some output form top. This is an easy way to tell that

Powered by Google App Engine
This is Rietveld 408576698