Index: content/renderer/devtools/v8_sampling_profiler.cc |
diff --git a/content/renderer/devtools/v8_sampling_profiler.cc b/content/renderer/devtools/v8_sampling_profiler.cc |
index 5aca412225c95754137d9b89af2b179bcdffff7a..baf2e50b3721fe0a8863f244ac2eb99476ee3568 100644 |
--- a/content/renderer/devtools/v8_sampling_profiler.cc |
+++ b/content/renderer/devtools/v8_sampling_profiler.cc |
@@ -639,7 +639,9 @@ void V8SamplingProfiler::EnableSamplingEventForTesting(int code_added_events, |
int sample_events) { |
render_thread_sampler_->SetEventsToCollectForTest(code_added_events, |
sample_events); |
- waitable_event_for_testing_.reset(new base::WaitableEvent(false, false)); |
+ waitable_event_for_testing_.reset( |
+ new base::WaitableEvent(base::WaitableEvent::ResetPolicy::AUTOMATIC, |
+ base::WaitableEvent::InitialState::NOT_SIGNALED)); |
} |
void V8SamplingProfiler::WaitSamplingEventForTesting() { |