diff --git a/base/metrics/user_metrics.cc b/base/metrics/user_metrics.cc index cb55bfc28d3895..ab1ff855961b30 100644 --- a/base/metrics/user_metrics.cc +++ b/base/metrics/user_metrics.cc @@ -27,35 +27,20 @@ LazyInstance>::DestructorAtExit } // namespace void RecordAction(const UserMetricsAction& action) { - RecordComputedAction(action.str_); + //RecordComputedAction(action.str_); } void RecordComputedAction(const std::string& action) { - RecordComputedActionAt(action, TimeTicks::Now()); + //RecordComputedActionAt(action, TimeTicks::Now()); } void RecordComputedActionSince(const std::string& action, TimeDelta time_since) { - RecordComputedActionAt(action, TimeTicks::Now() - time_since); + //RecordComputedActionAt(action, TimeTicks::Now() - time_since); } void RecordComputedActionAt(const std::string& action, TimeTicks action_time) { - TRACE_EVENT_INSTANT1("ui", "UserEvent", TRACE_EVENT_SCOPE_GLOBAL, "action", - action); - if (!g_task_runner.Get()) { - DCHECK(g_callbacks.Get().empty()); - return; - } - - if (!g_task_runner.Get()->BelongsToCurrentThread()) { - g_task_runner.Get()->PostTask( - FROM_HERE, BindOnce(&RecordComputedActionAt, action, action_time)); - return; - } - - for (const ActionCallback& callback : g_callbacks.Get()) { - callback.Run(action, action_time); - } + ; } void AddActionCallback(const ActionCallback& callback) {