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

Unified Diff: third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp

Issue 2840473002: Worker: Remove WorkerLoaderProxy for clean-up (Closed)
Patch Set: clean up Created 3 years, 7 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/core/workers/SharedWorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp b/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp
index 3ac4a713bb704f4e584d89e209c5b7f0eb6b3a5b..93fc942d4f31e4bc001d36b6680b761506af5342 100644
--- a/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp
@@ -38,19 +38,11 @@
namespace blink {
-std::unique_ptr<SharedWorkerThread> SharedWorkerThread::Create(
- const String& name,
- PassRefPtr<WorkerLoaderProxy> worker_loader_proxy,
- WorkerReportingProxy& worker_reporting_proxy) {
- return WTF::WrapUnique(new SharedWorkerThread(
- name, std::move(worker_loader_proxy), worker_reporting_proxy));
-}
-
SharedWorkerThread::SharedWorkerThread(
const String& name,
- PassRefPtr<WorkerLoaderProxy> worker_loader_proxy,
+ ThreadableLoadingContext* loading_context,
WorkerReportingProxy& worker_reporting_proxy)
- : WorkerThread(std::move(worker_loader_proxy), worker_reporting_proxy),
+ : WorkerThread(loading_context, worker_reporting_proxy),
worker_backing_thread_(
WorkerBackingThread::Create("SharedWorker Thread")),
name_(name.IsolatedCopy()) {}

Powered by Google App Engine
This is Rietveld 408576698