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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp

Issue 2774223002: CompositorWorkerProxyClientImpl to CompositorProxy cross thread reference is using WeakMember (Closed)
Patch Set: fix Created 3 years, 9 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/modules/compositorworker/CompositorWorkerMessagingProxy.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp
index 3764faf335c753cea975a8f6dd9d6186f5fdfae5..077b39150e2528854c59c46c988bd6f4ec687fbd 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerMessagingProxy.cpp
@@ -13,7 +13,9 @@ namespace blink {
CompositorWorkerMessagingProxy::CompositorWorkerMessagingProxy(
InProcessWorkerBase* worker,
WorkerClients* workerClients)
- : InProcessWorkerMessagingProxy(worker, workerClients) {}
+ : InProcessWorkerMessagingProxy(worker, workerClients) {
+ DCHECK(isMainThread());
+}
CompositorWorkerMessagingProxy::~CompositorWorkerMessagingProxy() {}

Powered by Google App Engine
This is Rietveld 408576698