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 #include <utility> |
9 | 10 |
10 #include "base/bind.h" | 11 #include "base/bind.h" |
11 #include "base/command_line.h" | 12 #include "base/command_line.h" |
12 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
13 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
14 #include "base/macros.h" | 15 #include "base/macros.h" |
15 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
16 #include "base/path_service.h" | 17 #include "base/path_service.h" |
17 #include "base/process/launch.h" | 18 #include "base/process/launch.h" |
18 #include "base/threading/worker_pool.h" | 19 #include "base/threading/worker_pool.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 std::string GetName() const override { return "Chrome Crash Service"; } | 109 std::string GetName() const override { return "Chrome Crash Service"; } |
109 }; | 110 }; |
110 | 111 |
111 } // namespace | 112 } // namespace |
112 | 113 |
113 void RegisterCAPSComponent(ComponentUpdateService* cus) { | 114 void RegisterCAPSComponent(ComponentUpdateService* cus) { |
114 // The component updater takes ownership of |installer|. | 115 // The component updater takes ownership of |installer|. |
115 scoped_ptr<ComponentInstallerTraits> traits( | 116 scoped_ptr<ComponentInstallerTraits> traits( |
116 new CAPSInstallerTraits()); | 117 new CAPSInstallerTraits()); |
117 DefaultComponentInstaller* installer = | 118 DefaultComponentInstaller* installer = |
118 new DefaultComponentInstaller(traits.Pass()); | 119 new DefaultComponentInstaller(std::move(traits)); |
119 installer->Register(cus, base::Closure()); | 120 installer->Register(cus, base::Closure()); |
120 } | 121 } |
121 | 122 |
122 } // namespace component_updater | 123 } // namespace component_updater |
OLD | NEW |