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

Unified Diff: media/cast/test/utility/udp_proxy.cc

Issue 2023343002: Migrate WaitableEvent to enum-based constructor in media/ (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 | « media/cast/test/utility/in_process_receiver.cc ('k') | media/filters/blocking_url_protocol.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/utility/udp_proxy.cc
diff --git a/media/cast/test/utility/udp_proxy.cc b/media/cast/test/utility/udp_proxy.cc
index 4ef77fcfc92b8cacf7ee975def7f778aef273b4b..9f8e08ef3a5a6681f6120af1c9f99bc7afaac6e5 100644
--- a/media/cast/test/utility/udp_proxy.cc
+++ b/media/cast/test/utility/udp_proxy.cc
@@ -676,7 +676,9 @@ class UDPProxyImpl : public UDPProxy {
weak_factory_(this) {
proxy_thread_.StartWithOptions(
base::Thread::Options(base::MessageLoop::TYPE_IO, 0));
- base::WaitableEvent start_event(false, false);
+ base::WaitableEvent start_event(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
proxy_thread_.task_runner()->PostTask(
FROM_HERE,
base::Bind(&UDPProxyImpl::Start,
@@ -687,7 +689,9 @@ class UDPProxyImpl : public UDPProxy {
}
~UDPProxyImpl() final {
- base::WaitableEvent stop_event(false, false);
+ base::WaitableEvent stop_event(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
proxy_thread_.task_runner()->PostTask(
FROM_HERE,
base::Bind(&UDPProxyImpl::Stop,
« no previous file with comments | « media/cast/test/utility/in_process_receiver.cc ('k') | media/filters/blocking_url_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698