diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/thread.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/thread.h b/base/thread.h index ae1b513..d1aae0e 100644 --- a/base/thread.h +++ b/base/thread.h @@ -120,6 +120,10 @@ class Thread : PlatformThread::Delegate { static void SetThreadWasQuitProperly(bool flag); static bool GetThreadWasQuitProperly(); + void set_message_loop(MessageLoop* message_loop) { + message_loop_ = message_loop; + } + private: // PlatformThread::Delegate methods: virtual void ThreadMain(); |