| 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 "chrome/browser/component_updater/caps_installer_win.h" | 5 #include "chrome/browser/component_updater/caps_installer_win.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.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/macros.h" |
| 14 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 15 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 16 #include "base/process/launch.h" | 17 #include "base/process/launch.h" |
| 17 #include "base/threading/worker_pool.h" | 18 #include "base/threading/worker_pool.h" |
| 18 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 19 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
| 20 #include "components/component_updater/component_updater_service.h" | 21 #include "components/component_updater/component_updater_service.h" |
| 21 #include "components/component_updater/default_component_installer.h" | 22 #include "components/component_updater/default_component_installer.h" |
| 22 | 23 |
| 23 namespace component_updater { | 24 namespace component_updater { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 void RegisterCAPSComponent(ComponentUpdateService* cus) { | 113 void RegisterCAPSComponent(ComponentUpdateService* cus) { |
| 113 // The component updater takes ownership of |installer|. | 114 // The component updater takes ownership of |installer|. |
| 114 scoped_ptr<ComponentInstallerTraits> traits( | 115 scoped_ptr<ComponentInstallerTraits> traits( |
| 115 new CAPSInstallerTraits()); | 116 new CAPSInstallerTraits()); |
| 116 DefaultComponentInstaller* installer = | 117 DefaultComponentInstaller* installer = |
| 117 new DefaultComponentInstaller(traits.Pass()); | 118 new DefaultComponentInstaller(traits.Pass()); |
| 118 installer->Register(cus, base::Closure()); | 119 installer->Register(cus, base::Closure()); |
| 119 } | 120 } |
| 120 | 121 |
| 121 } // namespace component_updater | 122 } // namespace component_updater |
| OLD | NEW |