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

Unified Diff: base/trace_event/trace_event_system_stats_monitor.cc

Issue 2791243002: Rewrite base::Bind into base::BindOnce on trivial cases in base (Closed)
Patch Set: Created 3 years, 9 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: base/trace_event/trace_event_system_stats_monitor.cc
diff --git a/base/trace_event/trace_event_system_stats_monitor.cc b/base/trace_event/trace_event_system_stats_monitor.cc
index 03ef5a67fdab91de29f905c29028cc5b152be49b..52e1cdcc3d9f16f6f34cd2bd9a2f30193eb3bbfb 100644
--- a/base/trace_event/trace_event_system_stats_monitor.cc
+++ b/base/trace_event/trace_event_system_stats_monitor.cc
@@ -79,16 +79,14 @@ void TraceEventSystemStatsMonitor::OnTraceLogEnabled() {
if (!enabled)
return;
task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&TraceEventSystemStatsMonitor::StartProfiling,
- weak_factory_.GetWeakPtr()));
+ FROM_HERE, base::BindOnce(&TraceEventSystemStatsMonitor::StartProfiling,
+ weak_factory_.GetWeakPtr()));
}
void TraceEventSystemStatsMonitor::OnTraceLogDisabled() {
task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&TraceEventSystemStatsMonitor::StopProfiling,
- weak_factory_.GetWeakPtr()));
+ FROM_HERE, base::BindOnce(&TraceEventSystemStatsMonitor::StopProfiling,
+ weak_factory_.GetWeakPtr()));
}
void TraceEventSystemStatsMonitor::StartProfiling() {

Powered by Google App Engine
This is Rietveld 408576698