diff options
Diffstat (limited to 'base/idle_timer.cc')
-rw-r--r-- | base/idle_timer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/idle_timer.cc b/base/idle_timer.cc index fa5e1cc..39b9bd4 100644 --- a/base/idle_timer.cc +++ b/base/idle_timer.cc @@ -13,6 +13,8 @@ IdleTimerTask::IdleTimerTask(TimeDelta idle_time, bool repeat) : idle_interval_(idle_time), repeat_(repeat), get_last_input_info_fn_(GetLastInputInfo) { + DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()) << + "Requires a thread that processes Windows UI events"; } IdleTimerTask::~IdleTimerTask() { |