diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/thread.cc | 6 | ||||
-rw-r--r-- | base/thread.h | 3 |
2 files changed, 1 insertions, 8 deletions
diff --git a/base/thread.cc b/base/thread.cc index dcda330..f447fbb 100644 --- a/base/thread.cc +++ b/base/thread.cc @@ -135,10 +135,6 @@ void Thread::StopSoon() { message_loop_->PostTask(FROM_HERE, new ThreadQuitTask()); } -void Thread::Run(MessageLoop* message_loop) { - message_loop->Run(); -} - void Thread::ThreadMain() { // The message loop for this thread. MessageLoop message_loop(startup_data_->options.message_loop_type); @@ -157,7 +153,7 @@ void Thread::ThreadMain() { // startup_data_ can't be touched anymore since the starting thread is now // unlocked. - Run(message_loop_); + message_loop.Run(); // Let the thread do extra cleanup. CleanUp(); diff --git a/base/thread.h b/base/thread.h index 36daa7f..d1aae0e 100644 --- a/base/thread.h +++ b/base/thread.h @@ -114,9 +114,6 @@ class Thread : PlatformThread::Delegate { // Called just prior to starting the message loop virtual void Init() {} - // Called to start the message loop - virtual void Run(MessageLoop* message_loop); - // Called just after the message loop ends virtual void CleanUp() {} |