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 769d34999f30d46f9092eb8bbda8d6452dc39613..08a4796a6a06501f89c5ff545ce3d69ad56be7f5 100644 |
--- a/third_party/WebKit/Source/web/tests/SpinLockTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/SpinLockTest.cpp |
@@ -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, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))); |
- thread2->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))); |
+ 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.reset(); |
thread2.reset(); |