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

Unified Diff: base/process_util_posix.cc

Issue 10694131: Switch to TimeDelta interface for process waiting functions in base. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 | « no previous file | base/process_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_posix.cc
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc
index 410e99c86db90fc94c72f8c48a2fa25e76a30610..98c438f7dccc062876693d8d4c94d6c4d21363a6 100644
--- a/base/process_util_posix.cc
+++ b/base/process_util_posix.cc
@@ -1249,8 +1249,10 @@ bool CleanupProcesses(const FilePath::StringType& executable_name,
int exit_code,
const ProcessFilter* filter) {
bool exited_cleanly =
- WaitForProcessesToExit(executable_name, wait_milliseconds,
- filter);
+ WaitForProcessesToExit(
+ executable_name,
+ base::TimeDelta::FromMilliseconds(wait_milliseconds),
+ filter);
if (!exited_cleanly)
KillProcesses(executable_name, exit_code, filter);
return exited_cleanly;
« no previous file with comments | « no previous file | base/process_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698