Index: components/font_service/public/cpp/font_service_thread.cc |
diff --git a/components/font_service/public/cpp/font_service_thread.cc b/components/font_service/public/cpp/font_service_thread.cc |
index c0566ddcf11be958df6c95a8a2e95d1a57a91a5c..5d9645acea19f90b3da3103fc319a5e6323a2384 100644 |
--- a/components/font_service/public/cpp/font_service_thread.cc |
+++ b/components/font_service/public/cpp/font_service_thread.cc |
@@ -37,7 +37,9 @@ bool FontServiceThread::MatchFamilyName( |
bool out_valid = false; |
// This proxies to the other thread, which proxies to mojo. Only on the reply |
// from mojo do we return from this. |
- base::WaitableEvent done_event(false, false); |
+ base::WaitableEvent done_event( |
+ base::WaitableEvent::ResetPolicy::AUTOMATIC, |
+ base::WaitableEvent::InitialState::NOT_SIGNALED); |
task_runner()->PostTask( |
FROM_HERE, |
base::Bind(&FontServiceThread::MatchFamilyNameImpl, this, &done_event, |
@@ -55,7 +57,9 @@ scoped_refptr<MappedFontFile> FontServiceThread::OpenStream( |
base::File stream_file; |
// This proxies to the other thread, which proxies to mojo. Only on the reply |
// from mojo do we return from this. |
- base::WaitableEvent done_event(false, false); |
+ base::WaitableEvent done_event( |
+ base::WaitableEvent::ResetPolicy::AUTOMATIC, |
+ base::WaitableEvent::InitialState::NOT_SIGNALED); |
task_runner()->PostTask(FROM_HERE, |
base::Bind(&FontServiceThread::OpenStreamImpl, this, |
&done_event, &stream_file, identity.fID)); |