OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/component_updater/sw_reporter_installer_win.h" | 5 #include "chrome/browser/component_updater/sw_reporter_installer_win.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 133 } |
134 | 134 |
135 base::FilePath GetRelativeInstallDir() const override { | 135 base::FilePath GetRelativeInstallDir() const override { |
136 return base::FilePath(FILE_PATH_LITERAL("SwReporter")); | 136 return base::FilePath(FILE_PATH_LITERAL("SwReporter")); |
137 } | 137 } |
138 | 138 |
139 void GetHash(std::vector<uint8_t>* hash) const override { GetPkHash(hash); } | 139 void GetHash(std::vector<uint8_t>* hash) const override { GetPkHash(hash); } |
140 | 140 |
141 std::string GetName() const override { return "Software Reporter Tool"; } | 141 std::string GetName() const override { return "Software Reporter Tool"; } |
142 | 142 |
143 std::string GetAp() const override { return std::string(); } | 143 update_client::InstallerAttributes GetInstallerAttributes() const override { |
| 144 return update_client::InstallerAttributes(); |
| 145 } |
144 | 146 |
145 static std::string ID() { | 147 static std::string ID() { |
146 update_client::CrxComponent component; | 148 update_client::CrxComponent component; |
147 component.version = Version("0.0.0.0"); | 149 component.version = Version("0.0.0.0"); |
148 GetPkHash(&component.pk_hash); | 150 GetPkHash(&component.pk_hash); |
149 return update_client::GetCrxComponentID(component); | 151 return update_client::GetCrxComponentID(component); |
150 } | 152 } |
151 | 153 |
152 private: | 154 private: |
153 static void GetPkHash(std::vector<uint8_t>* hash) { | 155 static void GetPkHash(std::vector<uint8_t>* hash) { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 } | 252 } |
251 | 253 |
252 void RegisterProfilePrefsForSwReporter( | 254 void RegisterProfilePrefsForSwReporter( |
253 user_prefs::PrefRegistrySyncable* registry) { | 255 user_prefs::PrefRegistrySyncable* registry) { |
254 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); | 256 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); |
255 | 257 |
256 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); | 258 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); |
257 } | 259 } |
258 | 260 |
259 } // namespace component_updater | 261 } // namespace component_updater |
OLD | NEW |