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

Unified Diff: services/shell/standalone/tracer.cc

Issue 2031693002: Migrate WaitableEvent to enum-based constructor in services/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: Created 4 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
« no previous file with comments | « services/shell/runner/host/child_process_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/standalone/tracer.cc
diff --git a/services/shell/standalone/tracer.cc b/services/shell/standalone/tracer.cc
index cffcfe09c552472a3512781d1ecf6169c6b9d8e1..2edf844e95bd8d3afeea46cb544533f9e6db2f33 100644
--- a/services/shell/standalone/tracer.cc
+++ b/services/shell/standalone/tracer.cc
@@ -86,7 +86,9 @@ void Tracer::StopTracingAndFlushToDisk() {
// gather as much data as possible on shutdown.
base::trace_event::TraceLog::GetInstance()->SetDisabled();
{
- base::WaitableEvent flush_complete_event(false, false);
+ base::WaitableEvent flush_complete_event(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
// TraceLog::Flush requires a message loop but we've already shut ours
// down.
// Spin up a new thread to flush things out.
« no previous file with comments | « services/shell/runner/host/child_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698