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

Unified Diff: base/win/event_trace_provider.h

Issue 1492403002: Remove kuint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: http security header file 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/pickle.cc ('k') | chrome/browser/devtools/device/usb/android_rsa.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/event_trace_provider.h
diff --git a/base/win/event_trace_provider.h b/base/win/event_trace_provider.h
index 7907347b72451607bba2e026b6550e1f457d0e4e..a87cb9c1cfd860d3898db1183fd63985bcd2cb6b 100644
--- a/base/win/event_trace_provider.h
+++ b/base/win/event_trace_provider.h
@@ -10,9 +10,12 @@
#include <windows.h>
#include <wmistr.h>
#include <evntrace.h>
+#include <stdint.h>
+
+#include <limits>
#include "base/base_export.h"
-#include "base/basictypes.h"
+#include "base/macros.h"
namespace base {
namespace win {
@@ -66,7 +69,7 @@ template <size_t N> class EtwMofEvent: public EtwMofEventBase<N> {
void SetField(int field, size_t size, const void *data) {
// DCHECK(field < N);
- if ((field < N) && (size <= kuint32max)) {
+ if ((field < N) && (size <= std::numeric_limits<uint32_t>::max())) {
fields[field].DataPtr = reinterpret_cast<ULONG64>(data);
fields[field].Length = static_cast<ULONG>(size);
}
« no previous file with comments | « base/pickle.cc ('k') | chrome/browser/devtools/device/usb/android_rsa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698