| 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 <memory> | 10 #include <memory> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 public: | 107 public: |
| 108 SwReporterInstallerTraits() {} | 108 SwReporterInstallerTraits() {} |
| 109 | 109 |
| 110 ~SwReporterInstallerTraits() override {} | 110 ~SwReporterInstallerTraits() override {} |
| 111 | 111 |
| 112 bool VerifyInstallation(const base::DictionaryValue& manifest, | 112 bool VerifyInstallation(const base::DictionaryValue& manifest, |
| 113 const base::FilePath& dir) const override { | 113 const base::FilePath& dir) const override { |
| 114 return base::PathExists(dir.Append(kSwReporterExeName)); | 114 return base::PathExists(dir.Append(kSwReporterExeName)); |
| 115 } | 115 } |
| 116 | 116 |
| 117 bool CanAutoUpdate() const override { return true; } | 117 bool SupportsGroupPolicyEnabledComponentUpdates() const override { |
| 118 return true; |
| 119 } |
| 118 | 120 |
| 119 bool RequiresNetworkEncryption() const override { return false; } | 121 bool RequiresNetworkEncryption() const override { return false; } |
| 120 | 122 |
| 121 bool OnCustomInstall(const base::DictionaryValue& manifest, | 123 bool OnCustomInstall(const base::DictionaryValue& manifest, |
| 122 const base::FilePath& install_dir) override { | 124 const base::FilePath& install_dir) override { |
| 123 return true; | 125 return true; |
| 124 } | 126 } |
| 125 | 127 |
| 126 void ComponentReady( | 128 void ComponentReady( |
| 127 const base::Version& version, | 129 const base::Version& version, |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 } | 258 } |
| 257 | 259 |
| 258 void RegisterProfilePrefsForSwReporter( | 260 void RegisterProfilePrefsForSwReporter( |
| 259 user_prefs::PrefRegistrySyncable* registry) { | 261 user_prefs::PrefRegistrySyncable* registry) { |
| 260 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); | 262 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); |
| 261 | 263 |
| 262 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); | 264 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); |
| 263 } | 265 } |
| 264 | 266 |
| 265 } // namespace component_updater | 267 } // namespace component_updater |
| OLD | NEW |