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

Unified Diff: chrome/browser/component_updater/supervised_user_whitelist_installer.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/component_updater/supervised_user_whitelist_installer.cc
diff --git a/chrome/browser/component_updater/supervised_user_whitelist_installer.cc b/chrome/browser/component_updater/supervised_user_whitelist_installer.cc
index 2fe544d6886ea22c1664ca9fc8817f13f0f486b7..42f3ed6738135082db5ee423da351f177df17f7f 100644
--- a/chrome/browser/component_updater/supervised_user_whitelist_installer.cc
+++ b/chrome/browser/component_updater/supervised_user_whitelist_installer.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/component_updater/supervised_user_whitelist_installer.h"
#include <stddef.h>
+#include <map>
#include <utility>
#include "base/bind.h"
@@ -248,6 +249,7 @@ class SupervisedUserWhitelistComponentInstallerTraits
bool VerifyInstallation(const base::DictionaryValue& manifest,
const base::FilePath& install_dir) const override;
bool CanAutoUpdate() const override;
+ bool RequiresNetworkEncryption() const override;
bool OnCustomInstall(const base::DictionaryValue& manifest,
const base::FilePath& install_dir) override;
void ComponentReady(const base::Version& version,
@@ -276,6 +278,11 @@ bool SupervisedUserWhitelistComponentInstallerTraits::CanAutoUpdate() const {
return true;
}
+bool SupervisedUserWhitelistComponentInstallerTraits::
+ RequiresNetworkEncryption() const {
+ return true;
+}
+
bool SupervisedUserWhitelistComponentInstallerTraits::OnCustomInstall(
const base::DictionaryValue& manifest,
const base::FilePath& install_dir) {

Powered by Google App Engine
This is Rietveld 408576698