summaryrefslogtreecommitdiffstats
path: root/win8
diff options
context:
space:
mode:
authorrvargas <rvargas@chromium.org>2015-02-18 16:20:06 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-19 00:21:19 +0000
commitfdad07617cf72b7be8ff5530256fa3aef9b74af5 (patch)
tree1767012bb66fabd6d8d9e1a83268aa24f1e5b5e4 /win8
parent53c256fe8661ea83c53f01700a552b04cbee77d2 (diff)
downloadchromium_src-fdad07617cf72b7be8ff5530256fa3aef9b74af5.zip
chromium_src-fdad07617cf72b7be8ff5530256fa3aef9b74af5.tar.gz
chromium_src-fdad07617cf72b7be8ff5530256fa3aef9b74af5.tar.bz2
Remove uses of WaitForExitCodeWithTimeout
BUG=417532 Review URL: https://codereview.chromium.org/927443004 Cr-Commit-Position: refs/heads/master@{#316929}
Diffstat (limited to 'win8')
-rw-r--r--win8/delegate_execute/chrome_util.cc5
-rw-r--r--win8/test/metro_registration_helper.cc5
2 files changed, 4 insertions, 6 deletions
diff --git a/win8/delegate_execute/chrome_util.cc b/win8/delegate_execute/chrome_util.cc
index 0f85d6dd..489e9fb 100644
--- a/win8/delegate_execute/chrome_util.cc
+++ b/win8/delegate_execute/chrome_util.cc
@@ -147,9 +147,8 @@ void UpdateChromeIfNeeded(const base::FilePath& chrome_exe) {
// Wait for the update to complete and report the results.
if (process.IsValid()) {
int exit_code = 0;
- if (!base::WaitForExitCodeWithTimeout(
- process.Handle(), &exit_code,
- base::TimeDelta::FromMilliseconds(INFINITE))) {
+ if (!process.WaitForExitWithTimeout(
+ base::TimeDelta::FromMilliseconds(INFINITE), &exit_code)) {
AtlTrace("%hs. Failed to get result when finalizing update.\n",
__FUNCTION__);
} else if (exit_code != installer::RENAME_SUCCESSFUL) {
diff --git a/win8/test/metro_registration_helper.cc b/win8/test/metro_registration_helper.cc
index 160f602..00f5b99 100644
--- a/win8/test/metro_registration_helper.cc
+++ b/win8/test/metro_registration_helper.cc
@@ -58,9 +58,8 @@ bool RegisterTestDefaultBrowser() {
base::LaunchOptions());
if (register_process.IsValid()) {
int ret = 0;
- if (base::WaitForExitCodeWithTimeout(
- register_process.Handle(), &ret,
- base::TimeDelta::FromSeconds(kRegistrationTimeoutSeconds))) {
+ if (register_process.WaitForExitWithTimeout(
+ base::TimeDelta::FromSeconds(kRegistrationTimeoutSeconds), &ret)) {
if (ret == 0) {
return true;
} else {