Chromium Code Reviews

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

Issue 1549143002: Add thread affinity and ASSERT() for same-thread restriction to WTF::Function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_ThreadSafeBindByVariadicTemplate
Patch Set: Rebase. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/platform/ContentSettingCallbacks.cpp
diff --git a/third_party/WebKit/Source/platform/ContentSettingCallbacks.cpp b/third_party/WebKit/Source/platform/ContentSettingCallbacks.cpp
index 4f0a8b4e1d29b07321535fcd4556f306bca212a9..1102c6c890616879336ea5a060e55e62bf44db98 100644
--- a/third_party/WebKit/Source/platform/ContentSettingCallbacks.cpp
+++ b/third_party/WebKit/Source/platform/ContentSettingCallbacks.cpp
@@ -32,12 +32,12 @@
namespace blink {
-PassOwnPtr<ContentSettingCallbacks> ContentSettingCallbacks::create(PassOwnPtr<Closure> allowed, PassOwnPtr<Closure> denied)
+PassOwnPtr<ContentSettingCallbacks> ContentSettingCallbacks::create(PassOwnPtr<SameThreadClosure> allowed, PassOwnPtr<SameThreadClosure> denied)
{
return adoptPtr(new ContentSettingCallbacks(std::move(allowed), std::move(denied)));
}
-ContentSettingCallbacks::ContentSettingCallbacks(PassOwnPtr<Closure> allowed, PassOwnPtr<Closure> denied)
+ContentSettingCallbacks::ContentSettingCallbacks(PassOwnPtr<SameThreadClosure> allowed, PassOwnPtr<SameThreadClosure> denied)
: m_allowed(std::move(allowed))
, m_denied(std::move(denied))
{
« no previous file with comments | « third_party/WebKit/Source/platform/ContentSettingCallbacks.h ('k') | third_party/WebKit/Source/platform/Task.h » ('j') | no next file with comments »

Powered by Google App Engine