| Index: base/run_loop.cc
|
| diff --git a/base/run_loop.cc b/base/run_loop.cc
|
| index a2322f849582c3b22cc78b9c9980b3fd8a1a92b8..6faaeee2ba323d505e1d2ad09490455953e5b3c4 100644
|
| --- a/base/run_loop.cc
|
| +++ b/base/run_loop.cc
|
| @@ -25,6 +25,7 @@ RunLoop::~RunLoop() {
|
| }
|
|
|
| void RunLoop::Run() {
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| if (!BeforeRun())
|
| return;
|
|
|
| @@ -44,6 +45,7 @@ void RunLoop::RunUntilIdle() {
|
| }
|
|
|
| void RunLoop::Quit() {
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| quit_called_ = true;
|
| if (running_ && loop_->run_loop_ == this) {
|
| // This is the inner-most RunLoop, so quit now.
|
| @@ -52,6 +54,7 @@ void RunLoop::Quit() {
|
| }
|
|
|
| void RunLoop::QuitWhenIdle() {
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| quit_when_idle_received_ = true;
|
| }
|
|
|
|
|