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

Unified Diff: base/process/kill_win.cc

Issue 1543293004: Switch to standard integer types in base/process/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ssize_t Created 5 years 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 | « base/process/kill_posix.cc ('k') | base/process/launch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/kill_win.cc
diff --git a/base/process/kill_win.cc b/base/process/kill_win.cc
index 7cbf9489051580acf64d20352733ab539996f00d..a9c04fbce6273f0360d00e33ae95008dca716de8 100644
--- a/base/process/kill_win.cc
+++ b/base/process/kill_win.cc
@@ -4,12 +4,14 @@
#include "base/process/kill.h"
-#include <io.h>
#include <windows.h>
+#include <io.h>
+#include <stdint.h>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/process/process_iterator.h"
#include "base/win/object_watcher.h"
@@ -156,9 +158,9 @@ bool WaitForProcessesToExit(const FilePath::StringType& executable_name,
NamedProcessIterator iter(executable_name, filter);
for (const ProcessEntry* entry = iter.NextProcessEntry(); entry;
entry = iter.NextProcessEntry()) {
- DWORD remaining_wait = static_cast<DWORD>(std::max(
- static_cast<int64>(0),
- wait.InMilliseconds() - (GetTickCount() - start_time)));
+ DWORD remaining_wait = static_cast<DWORD>(
+ std::max(static_cast<int64_t>(0),
+ wait.InMilliseconds() - (GetTickCount() - start_time)));
HANDLE process = OpenProcess(SYNCHRONIZE,
FALSE,
entry->th32ProcessID);
« no previous file with comments | « base/process/kill_posix.cc ('k') | base/process/launch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698