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

Unified Diff: content/browser/browser_shutdown_profile_dumper.cc

Issue 2026253003: Migrate WaitableEvent to enum-based constructor in content/ (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
Index: content/browser/browser_shutdown_profile_dumper.cc
diff --git a/content/browser/browser_shutdown_profile_dumper.cc b/content/browser/browser_shutdown_profile_dumper.cc
index 4330c6141ca755f1005e74d9c55b9fef7aa03e76..a1a57bdc6e14b8e3531c5593e0db66f49b762bf7 100644
--- a/content/browser/browser_shutdown_profile_dumper.cc
+++ b/content/browser/browser_shutdown_profile_dumper.cc
@@ -57,7 +57,9 @@ void BrowserShutdownProfileDumper::WriteTracesToDisc() {
// TraceLog::Flush() requires the calling thread to have a message loop.
// As the message loop of the current thread may have quit, start another
// thread for flushing the trace.
- base::WaitableEvent flush_complete_event(false, false);
+ base::WaitableEvent flush_complete_event(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
base::Thread flush_thread("browser_shutdown_trace_event_flush");
flush_thread.Start();
flush_thread.task_runner()->PostTask(

Powered by Google App Engine
This is Rietveld 408576698