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

Unified Diff: chrome_frame/test_utils.cc

Issue 10787010: Switch to TimeDelta interfaces in chrome automation test infrastructure. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 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
« no previous file with comments | « chrome_frame/test/perf/chrome_frame_perftest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test_utils.cc
diff --git a/chrome_frame/test_utils.cc b/chrome_frame/test_utils.cc
index 2333cc67da3015f6155c718dfcd7408e181f9918..ef8a288e3eb40f1b13c82e63e3c67f5574b7854b 100644
--- a/chrome_frame/test_utils.cc
+++ b/chrome_frame/test_utils.cc
@@ -113,8 +113,9 @@ void ScopedChromeFrameRegistrar::DoRegistration(
<< registration_command;
} else {
base::win::ScopedHandle rundll32(process_handle);
- if (!base::WaitForExitCodeWithTimeout(process_handle, &exit_code,
- kDllRegistrationTimeoutMs)) {
+ if (!base::WaitForExitCodeWithTimeout(
+ process_handle, &exit_code,
+ base::TimeDelta::FromMilliseconds(kDllRegistrationTimeoutMs))) {
LOG(ERROR) << "Timeout waiting to register or unregister DLL with "
"command: " << registration_command;
base::KillProcess(process_handle, 0, false);
« no previous file with comments | « chrome_frame/test/perf/chrome_frame_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698