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

Unified Diff: sandbox/win/src/sync_policy.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/sync_policy.h ('k') | sandbox/win/src/target_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/sync_policy.cc
diff --git a/sandbox/win/src/sync_policy.cc b/sandbox/win/src/sync_policy.cc
index 379e8f455df16bd4e8e77ad87b11af85501aa28c..7ef094ff73e5c7c0faed13985f92466eda381965 100644
--- a/sandbox/win/src/sync_policy.cc
+++ b/sandbox/win/src/sync_policy.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include <string>
#include "sandbox/win/src/sync_policy.h"
@@ -145,8 +147,8 @@ bool SyncPolicy::GenerateRules(const wchar_t* name,
if (TargetPolicy::EVENTS_ALLOW_READONLY == semantics) {
// We consider all flags that are not known to be readonly as potentially
// used for write.
- uint32 allowed_flags = SYNCHRONIZE | GENERIC_READ | READ_CONTROL;
- uint32 restricted_flags = ~allowed_flags;
+ uint32_t allowed_flags = SYNCHRONIZE | GENERIC_READ | READ_CONTROL;
+ uint32_t restricted_flags = ~allowed_flags;
open.AddNumberMatch(IF_NOT, OpenEventParams::ACCESS, restricted_flags, AND);
}
@@ -168,10 +170,10 @@ bool SyncPolicy::GenerateRules(const wchar_t* name,
NTSTATUS SyncPolicy::CreateEventAction(EvalResult eval_result,
const ClientInfo& client_info,
- const base::string16 &event_name,
- uint32 event_type,
- uint32 initial_state,
- HANDLE *handle) {
+ const base::string16& event_name,
+ uint32_t event_type,
+ uint32_t initial_state,
+ HANDLE* handle) {
NtCreateEventFunction NtCreateEvent = NULL;
ResolveNTFunctionPtr("NtCreateEvent", &NtCreateEvent);
@@ -207,9 +209,9 @@ NTSTATUS SyncPolicy::CreateEventAction(EvalResult eval_result,
NTSTATUS SyncPolicy::OpenEventAction(EvalResult eval_result,
const ClientInfo& client_info,
- const base::string16 &event_name,
- uint32 desired_access,
- HANDLE *handle) {
+ const base::string16& event_name,
+ uint32_t desired_access,
+ HANDLE* handle) {
NtOpenEventFunction NtOpenEvent = NULL;
ResolveNTFunctionPtr("NtOpenEvent", &NtOpenEvent);
« no previous file with comments | « sandbox/win/src/sync_policy.h ('k') | sandbox/win/src/target_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698