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

Unified Diff: sandbox/win/src/policy_engine_params.h

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/policy_engine_opcodes.cc ('k') | sandbox/win/src/policy_engine_processor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/policy_engine_params.h
diff --git a/sandbox/win/src/policy_engine_params.h b/sandbox/win/src/policy_engine_params.h
index 5b3c5ef11ce58d14f1aeb48cae3af5e02bf8f47a..fb4c00e3da104f5cfd43165c1f52d50c4af04664 100644
--- a/sandbox/win/src/policy_engine_params.h
+++ b/sandbox/win/src/policy_engine_params.h
@@ -5,7 +5,8 @@
#ifndef SANDBOX_SRC_POLICY_ENGINE_PARAMS_H__
#define SANDBOX_SRC_POLICY_ENGINE_PARAMS_H__
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "sandbox/win/src/internal_types.h"
#include "sandbox/win/src/nt_internals.h"
#include "sandbox/win/src/sandbox_nt_util.h"
@@ -61,11 +62,11 @@ class ParameterSet {
ParameterSet() : real_type_(INVALID_TYPE), address_(NULL) {}
// Retrieve the stored parameter. If the type does not match ulong fail.
- bool Get(uint32* destination) const {
+ bool Get(uint32_t* destination) const {
if (real_type_ != UINT32_TYPE) {
return false;
}
- *destination = Void2TypePointerCopy<uint32>();
+ *destination = Void2TypePointerCopy<uint32_t>();
return true;
}
@@ -152,9 +153,8 @@ class ParameterSetEx<wchar_t const*> : public ParameterSet {
: ParameterSet(WCHAR_TYPE, address) {}
};
-
-template<>
-class ParameterSetEx<uint32> : public ParameterSet {
+template <>
+class ParameterSetEx<uint32_t> : public ParameterSet {
public:
ParameterSetEx(const void* address)
: ParameterSet(UINT32_TYPE, address) {}
« no previous file with comments | « sandbox/win/src/policy_engine_opcodes.cc ('k') | sandbox/win/src/policy_engine_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698