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

Unified Diff: third_party/WebKit/Source/platform/WaitableEvent.cpp

Issue 2052593002: Adapt WebKit's WaitableEvent to base's new enum-based WaitableEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d_2_macios_manual
Patch Set: Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/WaitableEvent.cpp
diff --git a/third_party/WebKit/Source/platform/WaitableEvent.cpp b/third_party/WebKit/Source/platform/WaitableEvent.cpp
index c379a282dee18f3f675dfce98e3bd6b50e1c9340..6c5f9ee6680ede14f14392d1d960ff9a940f50d3 100644
--- a/third_party/WebKit/Source/platform/WaitableEvent.cpp
+++ b/third_party/WebKit/Source/platform/WaitableEvent.cpp
@@ -13,9 +13,13 @@ namespace blink {
WaitableEvent::WaitableEvent(ResetPolicy policy, InitialState state)
{
- bool manualReset = policy == ResetPolicy::Manual;
- bool initiallySignaled = state == InitialState::Signaled;
- m_impl = adoptPtr(new base::WaitableEvent(manualReset, initiallySignaled));
+ m_impl = adoptPtr(new base::WaitableEvent(
+ policy == ResetPolicy::Manual
+ ? base::WaitableEvent::ResetPolicy::MANUAL
+ : base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ state == InitialState::Signaled
+ ? base::WaitableEvent::InitialState::SIGNALED
+ : base::WaitableEvent::InitialState::NOT_SIGNALED));
}
WaitableEvent::~WaitableEvent() {}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698