OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/component_updater/default_component_installer.h" | 5 #include "components/component_updater/default_component_installer.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/sequenced_task_runner.h" | 15 #include "base/sequenced_task_runner.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "base/version.h" | 19 #include "base/version.h" |
20 // TODO(ddorwin): Find a better place for ReadManifest. | 20 // TODO(ddorwin): Find a better place for ReadManifest. |
21 #include "components/component_updater/component_updater_service.h" | 21 #include "components/component_updater/component_updater_service.h" |
22 #include "components/update_client/component_unpacker.h" | 22 #include "components/update_client/component_unpacker.h" |
23 #include "components/update_client/utils.h" | 23 #include "components/update_client/utils.h" |
24 | 24 |
25 using update_client::CrxComponent; | 25 using update_client::CrxComponent; |
26 | 26 |
27 namespace component_updater { | 27 namespace component_updater { |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 286 |
287 void DefaultComponentInstaller::ComponentReady( | 287 void DefaultComponentInstaller::ComponentReady( |
288 std::unique_ptr<base::DictionaryValue> manifest) { | 288 std::unique_ptr<base::DictionaryValue> manifest) { |
289 VLOG(1) << "Component ready, version " << current_version_.GetString() | 289 VLOG(1) << "Component ready, version " << current_version_.GetString() |
290 << " in " << GetInstallDirectory().value(); | 290 << " in " << GetInstallDirectory().value(); |
291 installer_traits_->ComponentReady(current_version_, GetInstallDirectory(), | 291 installer_traits_->ComponentReady(current_version_, GetInstallDirectory(), |
292 std::move(manifest)); | 292 std::move(manifest)); |
293 } | 293 } |
294 | 294 |
295 } // namespace component_updater | 295 } // namespace component_updater |
OLD | NEW |