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

Unified Diff: sandbox/win/src/top_level_dispatcher.cc

Issue 1538283002: Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macros 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 | « sandbox/win/src/threadpool_unittest.cc ('k') | sandbox/win/src/win2k_threadpool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/top_level_dispatcher.cc
diff --git a/sandbox/win/src/top_level_dispatcher.cc b/sandbox/win/src/top_level_dispatcher.cc
index 19a5f05be7f2132aee8e59c4b20e45f11673d9b3..e6e224b4df8ad7b20fd9cdc8fac7536332598196 100644
--- a/sandbox/win/src/top_level_dispatcher.cc
+++ b/sandbox/win/src/top_level_dispatcher.cc
@@ -4,9 +4,9 @@
#include "sandbox/win/src/top_level_dispatcher.h"
+#include <stdint.h>
#include <string.h>
-#include "base/basictypes.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "sandbox/win/src/crosscall_server.h"
@@ -116,7 +116,7 @@ bool TopLevelDispatcher::Ping(IPCInfo* ipc, void* arg1) {
switch (ipc->ipc_tag) {
case IPC_PING1_TAG: {
IPCInt ipc_int(arg1);
- uint32 cookie = ipc_int.As32Bit();
+ uint32_t cookie = ipc_int.As32Bit();
ipc->return_info.extended_count = 2;
ipc->return_info.extended[0].unsigned_int = ::GetTickCount();
ipc->return_info.extended[1].unsigned_int = 2 * cookie;
@@ -124,10 +124,10 @@ bool TopLevelDispatcher::Ping(IPCInfo* ipc, void* arg1) {
}
case IPC_PING2_TAG: {
CountedBuffer* io_buffer = reinterpret_cast<CountedBuffer*>(arg1);
- if (sizeof(uint32) != io_buffer->Size())
+ if (sizeof(uint32_t) != io_buffer->Size())
return false;
- uint32* cookie = reinterpret_cast<uint32*>(io_buffer->Buffer());
+ uint32_t* cookie = reinterpret_cast<uint32_t*>(io_buffer->Buffer());
*cookie = (*cookie) * 3;
return true;
}
« no previous file with comments | « sandbox/win/src/threadpool_unittest.cc ('k') | sandbox/win/src/win2k_threadpool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698