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

Unified Diff: content/renderer/devtools/v8_sampling_profiler.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/renderer/devtools/v8_sampling_profiler.cc
diff --git a/content/renderer/devtools/v8_sampling_profiler.cc b/content/renderer/devtools/v8_sampling_profiler.cc
index 59d824cb729e5da5a6ff844f04cda4dcd54902a7..1e43709f000990ffef7c1b2ff974e5a6e43d6600 100644
--- a/content/renderer/devtools/v8_sampling_profiler.cc
+++ b/content/renderer/devtools/v8_sampling_profiler.cc
@@ -4,27 +4,31 @@
#include "content/renderer/devtools/v8_sampling_profiler.h"
-#if defined(OS_POSIX)
-#include <signal.h>
-#define USE_SIGNALS
-#endif
-
-#if defined(OS_WIN)
-#include <windows.h>
-#endif
+#include <stdint.h>
#include "base/format_macros.h"
#include "base/location.h"
+#include "base/macros.h"
#include "base/strings/stringprintf.h"
#include "base/synchronization/cancellation_flag.h"
#include "base/thread_task_runner_handle.h"
#include "base/threading/platform_thread.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/trace_event_argument.h"
+#include "build/build_config.h"
#include "content/renderer/devtools/lock_free_circular_queue.h"
#include "content/renderer/render_thread_impl.h"
#include "v8/include/v8.h"
+#if defined(OS_POSIX)
+#include <signal.h>
+#define USE_SIGNALS
+#endif
+
+#if defined(OS_WIN)
+#include <windows.h>
+#endif
+
using base::trace_event::ConvertableToTraceFormat;
using base::trace_event::TraceLog;
using base::trace_event::TracedValue;
@@ -87,7 +91,7 @@ class PlatformData : public PlatformDataCommon {
std::string PtrToString(const void* value) {
return base::StringPrintf(
- "0x%" PRIx64, static_cast<uint64>(reinterpret_cast<intptr_t>(value)));
+ "0x%" PRIx64, static_cast<uint64_t>(reinterpret_cast<intptr_t>(value)));
}
class SampleRecord {
« no previous file with comments | « content/renderer/devtools/v8_sampling_profiler.h ('k') | content/renderer/devtools/v8_sampling_profiler_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698