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.h" | 5 #include "components/update_client/action.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "components/update_client/action_update.h" | 15 #include "components/update_client/action_update.h" |
16 #include "components/update_client/action_wait.h" | 16 #include "components/update_client/action_wait.h" |
17 #include "components/update_client/configurator.h" | 17 #include "components/update_client/configurator.h" |
18 #include "components/update_client/update_engine.h" | 18 #include "components/update_client/update_engine.h" |
19 #include "components/update_client/utils.h" | 19 #include "components/update_client/utils.h" |
20 | 20 |
21 namespace update_client { | 21 namespace update_client { |
22 | 22 |
23 using Events = UpdateClient::Observer::Events; | 23 using Events = UpdateClient::Observer::Events; |
24 | 24 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 159 } |
160 | 160 |
161 void ActionImpl::UpdateComplete(int error) { | 161 void ActionImpl::UpdateComplete(int error) { |
162 DCHECK(thread_checker_.CalledOnValidThread()); | 162 DCHECK(thread_checker_.CalledOnValidThread()); |
163 | 163 |
164 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, | 164 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, |
165 base::Bind(callback_, error)); | 165 base::Bind(callback_, error)); |
166 } | 166 } |
167 | 167 |
168 } // namespace update_client | 168 } // namespace update_client |
OLD | NEW |