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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc

Issue 2837323002: Merged all PointerToId functions into TraceHelper::PointerToString. (Closed)
Patch Set: Rebased Created 3 years, 7 months 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: third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc b/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
index 5e5d7b7444be62146d1158e0bfb2fc3b3ae05459..568ba95e9a4f01385c715dd58c1b54dd2f2d3a38 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
@@ -6,14 +6,13 @@
#include <utility>
-#include "base/format_macros.h"
#include "base/memory/ptr_util.h"
-#include "base/strings/stringprintf.h"
#include "base/time/time.h"
#include "base/trace_event/blame_context.h"
#include "platform/scheduler/base/task_queue_manager.h"
#include "platform/scheduler/base/task_queue_manager_delegate.h"
#include "platform/scheduler/base/time_domain.h"
+#include "platform/scheduler/base/trace_helper.h"
#include "platform/scheduler/base/work_queue.h"
namespace blink {
@@ -504,10 +503,7 @@ void TaskQueueImpl::AsValueInto(base::TimeTicks now,
base::AutoLock immediate_incoming_queue_lock(immediate_incoming_queue_lock_);
state->BeginDictionary();
state->SetString("name", GetName());
- state->SetString(
- "task_queue_id",
- base::StringPrintf("%" PRIx64, static_cast<uint64_t>(
- reinterpret_cast<uintptr_t>(this))));
+ state->SetString("task_queue_id", TraceHelper::PointerToString(this, false));
state->SetBoolean("enabled", IsQueueEnabled());
state->SetString("time_domain_name",
main_thread_only().time_domain->GetName());

Powered by Google App Engine
This is Rietveld 408576698