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

Unified Diff: content/child/worker_task_runner.cc

Issue 880213002: cleanup: ThreadLocalState::run_loop_ is never used, so remove it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698