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

Side by Side Diff: ios/chrome/browser/net/crl_set_fetcher.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
« no previous file with comments | « ios/chrome/browser/component_updater/ios_component_updater_configurator.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ios/chrome/browser/net/crl_set_fetcher.h" 5 #include "ios/chrome/browser/net/crl_set_fetcher.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 void CRLSetFetcher::RegisterComponent(uint32_t sequence_of_loaded_crl) { 130 void CRLSetFetcher::RegisterComponent(uint32_t sequence_of_loaded_crl) {
131 DCHECK_CURRENTLY_ON(web::WebThread::UI); 131 DCHECK_CURRENTLY_ON(web::WebThread::UI);
132 132
133 update_client::CrxComponent component; 133 update_client::CrxComponent component;
134 component.pk_hash.assign(kPublicKeySHA256, 134 component.pk_hash.assign(kPublicKeySHA256,
135 kPublicKeySHA256 + sizeof(kPublicKeySHA256)); 135 kPublicKeySHA256 + sizeof(kPublicKeySHA256));
136 component.installer = this; 136 component.installer = this;
137 component.name = "CRLSet"; 137 component.name = "CRLSet";
138 component.version = Version(base::UintToString(sequence_of_loaded_crl)); 138 component.version = Version(base::UintToString(sequence_of_loaded_crl));
139 component.allow_background_download = false; 139 component.allows_background_download = false;
140 component.requires_network_encryption = false;
140 if (!component.version.IsValid()) { 141 if (!component.version.IsValid()) {
141 NOTREACHED(); 142 NOTREACHED();
142 component.version = Version("0"); 143 component.version = Version("0");
143 } 144 }
144 145
145 if (!cus_->RegisterComponent(component)) 146 if (!cus_->RegisterComponent(component))
146 NOTREACHED() << "RegisterComponent returned error"; 147 NOTREACHED() << "RegisterComponent returned error";
147 } 148 }
148 149
149 void CRLSetFetcher::DoDeleteFromDisk() { 150 void CRLSetFetcher::DoDeleteFromDisk() {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 bool CRLSetFetcher::GetInstalledFile(const std::string& file, 228 bool CRLSetFetcher::GetInstalledFile(const std::string& file,
228 base::FilePath* installed_file) { 229 base::FilePath* installed_file) {
229 return false; 230 return false;
230 } 231 }
231 232
232 bool CRLSetFetcher::Uninstall() { 233 bool CRLSetFetcher::Uninstall() {
233 return false; 234 return false;
234 } 235 }
235 236
236 CRLSetFetcher::~CRLSetFetcher() {} 237 CRLSetFetcher::~CRLSetFetcher() {}
OLDNEW
« no previous file with comments | « ios/chrome/browser/component_updater/ios_component_updater_configurator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698