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

Unified Diff: base/profiler/stack_sampling_profiler.cc

Issue 2032603002: Migrate WaitableEvent to enum-based constructor in base/ (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: base/profiler/stack_sampling_profiler.cc
diff --git a/base/profiler/stack_sampling_profiler.cc b/base/profiler/stack_sampling_profiler.cc
index 82e454ddc4d83cd38a38fc7beb324286e2af2fb9..3d4979ca0bf49b9541737e23b4584e7d8b49c69a 100644
--- a/base/profiler/stack_sampling_profiler.cc
+++ b/base/profiler/stack_sampling_profiler.cc
@@ -120,7 +120,8 @@ StackSamplingProfiler::SamplingThread::SamplingThread(
const CompletedCallback& completed_callback)
: native_sampler_(std::move(native_sampler)),
params_(params),
- stop_event_(false, false),
+ stop_event_(WaitableEvent::ResetPolicy::AUTOMATIC,
+ WaitableEvent::InitialState::NOT_SIGNALED),
completed_callback_(completed_callback) {}
StackSamplingProfiler::SamplingThread::~SamplingThread() {}

Powered by Google App Engine
This is Rietveld 408576698