| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/update_client/action_wait.h" | 5 #include "components/update_client/action_wait.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "components/update_client/update_engine.h" | 12 #include "components/update_client/update_engine.h" |
| 13 | 13 |
| 14 namespace update_client { | 14 namespace update_client { |
| 15 | 15 |
| 16 ActionWait::ActionWait(const base::TimeDelta& time_delta) | 16 ActionWait::ActionWait(const base::TimeDelta& time_delta) |
| 17 : time_delta_(time_delta) { | 17 : time_delta_(time_delta) { |
| 18 } | 18 } |
| 19 | 19 |
| 20 ActionWait::~ActionWait() { | 20 ActionWait::~ActionWait() { |
| 21 DCHECK(thread_checker_.CalledOnValidThread()); | 21 DCHECK(thread_checker_.CalledOnValidThread()); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 52 NotifyObservers(UpdateClient::Observer::Events::COMPONENT_WAIT, | 52 NotifyObservers(UpdateClient::Observer::Events::COMPONENT_WAIT, |
| 53 update_context_->queue.front()); | 53 update_context_->queue.front()); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void ActionWait::WaitComplete() { | 56 void ActionWait::WaitComplete() { |
| 57 DCHECK(thread_checker_.CalledOnValidThread()); | 57 DCHECK(thread_checker_.CalledOnValidThread()); |
| 58 UpdateCrx(); | 58 UpdateCrx(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 } // namespace update_client | 61 } // namespace update_client |
| OLD | NEW |