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

Unified Diff: third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.cpp

Issue 1682423002: Remove WebWaitableEvent and replace it with WaitableEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android build Created 4 years, 10 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: third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.cpp b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.cpp
index 3874082f98247e4a4972cd1963bf844afe3f5cd0..b526e10be61d2cdc78904fc92b7598b3496252fa 100644
--- a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.cpp
+++ b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.cpp
@@ -11,7 +11,7 @@ namespace blink {
DataConsumerHandleTestUtil::Thread::Thread(const char* name, InitializationPolicy initializationPolicy)
: m_thread(WebThreadSupportingGC::create(name))
, m_initializationPolicy(initializationPolicy)
- , m_waitableEvent(adoptPtr(Platform::current()->createWaitableEvent()))
+ , m_waitableEvent(adoptPtr(new WaitableEvent()))
{
m_thread->postTask(BLINK_FROM_HERE, new Task(threadSafeBind(&Thread::initialize, AllowCrossThreadAccess(this))));
m_waitableEvent->wait();
@@ -165,7 +165,7 @@ DataConsumerHandleTestUtil::ReplayingHandle::Context::Context()
, m_client(nullptr)
, m_result(ShouldWait)
, m_isHandleAttached(true)
- , m_detached(adoptPtr(Platform::current()->createWaitableEvent()))
+ , m_detached(adoptPtr(new WaitableEvent()))
{
}

Powered by Google App Engine
This is Rietveld 408576698