| Index: content/child/worker_task_runner.cc
|
| diff --git a/content/child/worker_task_runner.cc b/content/child/worker_task_runner.cc
|
| index 02c4bab320f4145476bd1d5cee56bc02a45d1c21..df4e03132e3873fc1a47020c4e5554ed467a9e3c 100644
|
| --- a/content/child/worker_task_runner.cc
|
| +++ b/content/child/worker_task_runner.cc
|
| @@ -30,11 +30,8 @@ class RunClosureTask : public WebWorkerRunLoop::Task {
|
| } // namespace
|
|
|
| struct WorkerTaskRunner::ThreadLocalState {
|
| - ThreadLocalState(int id, const WebWorkerRunLoop& loop)
|
| - : id_(id), run_loop_(loop) {
|
| - }
|
| + explicit ThreadLocalState(int id) : id_(id) {}
|
| int id_;
|
| - WebWorkerRunLoop run_loop_;
|
| ObserverList<WorkerTaskRunner::Observer> stop_observers_;
|
| };
|
|
|
| @@ -90,7 +87,7 @@ WorkerTaskRunner::~WorkerTaskRunner() {
|
| void WorkerTaskRunner::OnWorkerRunLoopStarted(const WebWorkerRunLoop& loop) {
|
| DCHECK(!current_tls_.Get());
|
| int id = id_sequence_.GetNext();
|
| - current_tls_.Set(new ThreadLocalState(id, loop));
|
| + current_tls_.Set(new ThreadLocalState(id));
|
|
|
| base::AutoLock locker_(loop_map_lock_);
|
| loop_map_[id] = loop;
|
|
|