Index: chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm |
diff --git a/chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm b/chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm |
index 59c61d6bec10d4bd36d974e4aa58bb32c21da7e3..cee3ec098a93f3e79b0273cecd176b6f0a508c36 100644 |
--- a/chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm |
+++ b/chrome/browser/apps/app_shim/app_shim_interactive_uitest_mac.mm |
@@ -425,8 +425,10 @@ IN_PROC_BROWSER_TEST_F(AppShimInteractiveTest, MAYBE_HostedAppLaunch) { |
GetFirstHostedAppWindow()->window()->Close(); |
// Wait for the window to be closed. |
listener.WaitUntilRemoved(); |
- ASSERT_TRUE( |
- base::WaitForSingleProcess(shim_pid, TestTimeouts::action_timeout())); |
+ base::Process shim_process(shim_pid); |
+ int exit_code; |
+ ASSERT_TRUE(shim_process.WaitForExitWithTimeout( |
+ TestTimeouts::action_timeout(), &exit_code)); |
EXPECT_FALSE(GetFirstHostedAppWindow()); |
EXPECT_FALSE(HasAppShimHost(profile(), app->id())); |
@@ -497,8 +499,10 @@ IN_PROC_BROWSER_TEST_F(AppShimInteractiveTest, MAYBE_Launch) { |
pid_t shim_pid; |
EXPECT_EQ(noErr, GetProcessPID(&shim_psn, &shim_pid)); |
GetFirstAppWindow()->GetBaseWindow()->Close(); |
- ASSERT_TRUE( |
- base::WaitForSingleProcess(shim_pid, TestTimeouts::action_timeout())); |
+ base::Process shim_process(shim_pid); |
+ int exit_code; |
+ ASSERT_TRUE(shim_process.WaitForExitWithTimeout( |
+ TestTimeouts::action_timeout(), &exit_code)); |
EXPECT_FALSE(GetFirstAppWindow()); |
EXPECT_FALSE(HasAppShimHost(profile(), app->id())); |