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

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

Issue 2150443002: Supplement should have a Member to the corresponding Supplementable object (Part 1) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 4 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/CompositorWorkerThreadTest.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp
index 3f7f3612d12d04faa8b8780d88f2ae9fc1ca83d8..dc8bd787ffbc18217fb69dc13376b8facef0296d 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp
@@ -67,7 +67,10 @@ class TestCompositorProxyClient
, public CompositorProxyClient {
USING_GARBAGE_COLLECTED_MIXIN(TestCompositorProxyClient);
public:
- TestCompositorProxyClient() {}
+ explicit TestCompositorProxyClient(WorkerClients& clients)
+ : CompositorProxyClient(clients)
+ {
+ }
void setGlobalScope(WorkerGlobalScope*) override {}
void requestAnimationFrame() override {}
@@ -116,7 +119,7 @@ public:
{
std::unique_ptr<CompositorWorkerThread> workerThread = CompositorWorkerThread::create(nullptr, *m_objectProxy, 0);
WorkerClients* clients = WorkerClients::create();
- provideCompositorProxyClientTo(clients, new TestCompositorProxyClient);
+ provideCompositorProxyClientTo(clients, new TestCompositorProxyClient(*clients));
workerThread->start(WorkerThreadStartupData::create(
KURL(ParsedURLString, "http://fake.url/"),
"fake user agent",

Powered by Google App Engine
This is Rietveld 408576698