| Index: third_party/WebKit/Source/web/tests/SpinLockTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/SpinLockTest.cpp b/third_party/WebKit/Source/web/tests/SpinLockTest.cpp
|
| index 08a4796a6a06501f89c5ff545ce3d69ad56be7f5..3da48ab70aa1ba402978943aa301959afeb3539d 100644
|
| --- a/third_party/WebKit/Source/web/tests/SpinLockTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/SpinLockTest.cpp
|
| @@ -30,7 +30,7 @@
|
|
|
| #include "wtf/SpinLock.h"
|
|
|
| -#include "platform/ThreadSafeFunctional.h"
|
| +#include "platform/CrossThreadFunctional.h"
|
| #include "public/platform/Platform.h"
|
| #include "public/platform/WebTaskRunner.h"
|
| #include "public/platform/WebThread.h"
|
| @@ -80,8 +80,8 @@ TEST(SpinLockTest, Torture)
|
| std::unique_ptr<WebThread> thread1 = wrapUnique(Platform::current()->createThread("thread1"));
|
| std::unique_ptr<WebThread> thread2 = wrapUnique(Platform::current()->createThread("thread2"));
|
|
|
| - thread1->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&threadMain, crossThreadUnretained(static_cast<char*>(sharedBuffer))));
|
| - thread2->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&threadMain, crossThreadUnretained(static_cast<char*>(sharedBuffer))));
|
| + thread1->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&threadMain, crossThreadUnretained(static_cast<char*>(sharedBuffer))));
|
| + thread2->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&threadMain, crossThreadUnretained(static_cast<char*>(sharedBuffer))));
|
|
|
| thread1.reset();
|
| thread2.reset();
|
|
|