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 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 return user_data.Append(kCapsDirectory); | 103 return user_data.Append(kCapsDirectory); |
104 } | 104 } |
105 | 105 |
106 void GetHash(std::vector<uint8_t>* hash) const override { | 106 void GetHash(std::vector<uint8_t>* hash) const override { |
107 hash->assign(kSha256Hash, | 107 hash->assign(kSha256Hash, |
108 kSha256Hash + arraysize(kSha256Hash)); | 108 kSha256Hash + arraysize(kSha256Hash)); |
109 } | 109 } |
110 | 110 |
111 // This string is shown in chrome://components. | 111 // This string is shown in chrome://components. |
112 std::string GetName() const override { return "Chrome Crash Service"; } | 112 std::string GetName() const override { return "Chrome Crash Service"; } |
| 113 |
| 114 std::string GetAp() const override { return std::string(); } |
113 }; | 115 }; |
114 | 116 |
115 } // namespace | 117 } // namespace |
116 | 118 |
117 void RegisterCAPSComponent(ComponentUpdateService* cus) { | 119 void RegisterCAPSComponent(ComponentUpdateService* cus) { |
118 // The component updater takes ownership of |installer|. | 120 // The component updater takes ownership of |installer|. |
119 scoped_ptr<ComponentInstallerTraits> traits( | 121 scoped_ptr<ComponentInstallerTraits> traits( |
120 new CAPSInstallerTraits()); | 122 new CAPSInstallerTraits()); |
121 DefaultComponentInstaller* installer = | 123 DefaultComponentInstaller* installer = |
122 new DefaultComponentInstaller(std::move(traits)); | 124 new DefaultComponentInstaller(std::move(traits)); |
123 installer->Register(cus, base::Closure()); | 125 installer->Register(cus, base::Closure()); |
124 } | 126 } |
125 | 127 |
126 } // namespace component_updater | 128 } // namespace component_updater |
OLD | NEW |