Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/page/NetworkStateNotifierTest.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/core/page/NetworkStateNotifierTest.cpp
diff --git a/third_party/WebKit/Source/core/page/NetworkStateNotifierTest.cpp b/third_party/WebKit/Source/core/page/NetworkStateNotifierTest.cpp
index dfdfd650dc41ee3862b71e3c288c4a5bad60d5a5..143dbd09ca0481e08253de81642a0e3d70a785e9 100644
--- a/third_party/WebKit/Source/core/page/NetworkStateNotifierTest.cpp
+++ b/third_party/WebKit/Source/core/page/NetworkStateNotifierTest.cpp
@@ -80,13 +80,13 @@ public:
return m_callbackCount;
}
- void setNotificationCallback(PassOwnPtr<Closure> closure)
+ void setNotificationCallback(PassOwnPtr<SameThreadClosure> closure)
{
m_closure = closure;
}
private:
- OwnPtr<Closure> m_closure;
+ OwnPtr<SameThreadClosure> m_closure;
WebConnectionType m_observedType;
double m_observedMaxBandwidthMbps;
int m_callbackCount;

Powered by Google App Engine