diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 17:23:51 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 17:23:51 +0000 |
commit | 743ace4213ae3ea93355dff8b57ef33287b32220 (patch) | |
tree | e39fc30e436e0a06790d665878cd91113ba180d4 /base/process_util_posix.cc | |
parent | 8c14a436fe6488c8f647ff79301102e885838c77 (diff) | |
download | chromium_src-743ace4213ae3ea93355dff8b57ef33287b32220.zip chromium_src-743ace4213ae3ea93355dff8b57ef33287b32220.tar.gz chromium_src-743ace4213ae3ea93355dff8b57ef33287b32220.tar.bz2 |
Consistently use int64 for integers holding number of milliseconds.
This applies only to things which use TimeDelta::InMilliseconds, because
it returns int64. Before this patch callers static_casted that to int,
and after this patch they use the returned value as int64.
Review URL: http://codereview.chromium.org/126279
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18626 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_posix.cc')
-rw-r--r-- | base/process_util_posix.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc index 840339f..212638f 100644 --- a/base/process_util_posix.cc +++ b/base/process_util_posix.cc @@ -284,7 +284,7 @@ bool WaitForExitCode(ProcessHandle handle, int* exit_code) { namespace { -int WaitpidWithTimeout(ProcessHandle handle, int wait_milliseconds, +int WaitpidWithTimeout(ProcessHandle handle, int64 wait_milliseconds, bool* success) { // This POSIX version of this function only guarantees that we wait no less // than |wait_milliseconds| for the proces to exit. The child process may @@ -339,7 +339,7 @@ int WaitpidWithTimeout(ProcessHandle handle, int wait_milliseconds, } // namespace -bool WaitForSingleProcess(ProcessHandle handle, int wait_milliseconds) { +bool WaitForSingleProcess(ProcessHandle handle, int64 wait_milliseconds) { bool waitpid_success; int status; if (wait_milliseconds == base::kNoTimeout) @@ -354,7 +354,7 @@ bool WaitForSingleProcess(ProcessHandle handle, int wait_milliseconds) { } } -bool CrashAwareSleep(ProcessHandle handle, int wait_milliseconds) { +bool CrashAwareSleep(ProcessHandle handle, int64 wait_milliseconds) { bool waitpid_success; int status = WaitpidWithTimeout(handle, wait_milliseconds, &waitpid_success); if (status != -1) { @@ -503,7 +503,7 @@ bool KillProcesses(const std::wstring& executable_name, int exit_code, } bool WaitForProcessesToExit(const std::wstring& executable_name, - int wait_milliseconds, + int64 wait_milliseconds, const ProcessFilter* filter) { bool result = false; @@ -525,12 +525,12 @@ bool WaitForProcessesToExit(const std::wstring& executable_name, } bool CleanupProcesses(const std::wstring& executable_name, - int wait_milliseconds, + int64 wait_milliseconds, int exit_code, const ProcessFilter* filter) { bool exited_cleanly = WaitForProcessesToExit(executable_name, wait_milliseconds, - filter); + filter); if (!exited_cleanly) KillProcesses(executable_name, exit_code, filter); return exited_cleanly; |