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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/file_util.h" | |
7 #include "base/files/file_enumerator.h" | 6 #include "base/files/file_enumerator.h" |
8 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "base/version.h" | 14 #include "base/version.h" |
15 // TODO(ddorwin): Find a better place for ReadManifest. | 15 // TODO(ddorwin): Find a better place for ReadManifest. |
16 #include "components/component_updater/component_unpacker.h" | 16 #include "components/component_updater/component_unpacker.h" |
17 #include "components/component_updater/component_updater_configurator.h" | 17 #include "components/component_updater/component_updater_configurator.h" |
18 #include "components/component_updater/default_component_installer.h" | 18 #include "components/component_updater/default_component_installer.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 if (current_version_.CompareTo(base::Version(kNullVersion)) > 0) { | 223 if (current_version_.CompareTo(base::Version(kNullVersion)) > 0) { |
224 scoped_ptr<base::DictionaryValue> manifest_copy( | 224 scoped_ptr<base::DictionaryValue> manifest_copy( |
225 current_manifest_->DeepCopy()); | 225 current_manifest_->DeepCopy()); |
226 installer_traits_->ComponentReady( | 226 installer_traits_->ComponentReady( |
227 current_version_, GetInstallDirectory(), manifest_copy.Pass()); | 227 current_version_, GetInstallDirectory(), manifest_copy.Pass()); |
228 } | 228 } |
229 } | 229 } |
230 | 230 |
231 } // namespace component_updater | 231 } // namespace component_updater |
OLD | NEW |