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

Unified Diff: third_party/WebKit/Source/platform/heap/PersistentTest.cpp

Issue 2104913002: Rename threadSafeBind() to crossThreadBind() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_CTCPointer
Patch Set: Rebase 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
Index: third_party/WebKit/Source/platform/heap/PersistentTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/PersistentTest.cpp b/third_party/WebKit/Source/platform/heap/PersistentTest.cpp
index ce5932a37a08583346c8b90249087119bf8dfec5..8c9d22678ebc1e85d2bf71a46c413957dc44ec2d 100644
--- a/third_party/WebKit/Source/platform/heap/PersistentTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/PersistentTest.cpp
@@ -4,7 +4,7 @@
#include "platform/heap/Persistent.h"
-#include "platform/ThreadSafeFunctional.h"
+#include "platform/CrossThreadFunctional.h"
#include "platform/heap/Handle.h"
#include "testing/gtest/include/gtest/gtest.h"
#include <memory>
@@ -46,7 +46,7 @@ TEST(PersistentTest, CrossThreadBindCancellation)
{
Receiver* receiver = new Receiver;
int counter = 0;
- std::unique_ptr<CrossThreadClosure> function = blink::threadSafeBind(&Receiver::increment, wrapCrossThreadWeakPersistent(receiver), WTF::crossThreadUnretained(&counter));
+ std::unique_ptr<CrossThreadClosure> function = blink::crossThreadBind(&Receiver::increment, wrapCrossThreadWeakPersistent(receiver), WTF::crossThreadUnretained(&counter));
(*function)();
EXPECT_EQ(1, counter);

Powered by Google App Engine
This is Rietveld 408576698