Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/browser/component_updater/sw_reporter_installer_win.cc

Issue 1740333002: Allow fallback from https to http for component update checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 ~SwReporterInstallerTraits() override {} 109 ~SwReporterInstallerTraits() override {}
110 110
111 bool VerifyInstallation(const base::DictionaryValue& manifest, 111 bool VerifyInstallation(const base::DictionaryValue& manifest,
112 const base::FilePath& dir) const override { 112 const base::FilePath& dir) const override {
113 return base::PathExists(dir.Append(kSwReporterExeName)); 113 return base::PathExists(dir.Append(kSwReporterExeName));
114 } 114 }
115 115
116 bool CanAutoUpdate() const override { return true; } 116 bool CanAutoUpdate() const override { return true; }
117 117
118 bool RequiresNetworkEncryption() const override { return false; }
119
118 bool OnCustomInstall(const base::DictionaryValue& manifest, 120 bool OnCustomInstall(const base::DictionaryValue& manifest,
119 const base::FilePath& install_dir) override { 121 const base::FilePath& install_dir) override {
120 return true; 122 return true;
121 } 123 }
122 124
123 void ComponentReady(const base::Version& version, 125 void ComponentReady(const base::Version& version,
124 const base::FilePath& install_dir, 126 const base::FilePath& install_dir,
125 scoped_ptr<base::DictionaryValue> manifest) override { 127 scoped_ptr<base::DictionaryValue> manifest) override {
126 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 128 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
127 safe_browsing::RunSwReporter(install_dir.Append(kSwReporterExeName), 129 safe_browsing::RunSwReporter(install_dir.Append(kSwReporterExeName),
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698