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

Side by Side Diff: chrome/browser/component_updater/ev_whitelist_component_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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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/ev_whitelist_component_installer.h" 5 #include "chrome/browser/component_updater/ev_whitelist_component_installer.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 0xe0, 0x53, 0x15, 0x2e, 0x73, 0x29, 0x0d, 0x32, 0x4d, 0xc2, 0x25, 68 0xe0, 0x53, 0x15, 0x2e, 0x73, 0x29, 0x0d, 0x32, 0x4d, 0xc2, 0x25,
69 0xef, 0x14, 0xab, 0xd8, 0x2f, 0x84, 0xf5, 0x85, 0x9e, 0xc0, 0xfa, 69 0xef, 0x14, 0xab, 0xd8, 0x2f, 0x84, 0xf5, 0x85, 0x9e, 0xc0, 0xfa,
70 0x94, 0xbc, 0x99, 0xc9, 0x5a, 0x27, 0x55, 0x19, 0x83, 0xef}; 70 0x94, 0xbc, 0x99, 0xc9, 0x5a, 0x27, 0x55, 0x19, 0x83, 0xef};
71 71
72 const char kEVWhitelistManifestName[] = "EV Certs CT whitelist"; 72 const char kEVWhitelistManifestName[] = "EV Certs CT whitelist";
73 73
74 bool EVWhitelistComponentInstallerTraits::CanAutoUpdate() const { 74 bool EVWhitelistComponentInstallerTraits::CanAutoUpdate() const {
75 return true; 75 return true;
76 } 76 }
77 77
78 bool EVWhitelistComponentInstallerTraits::RequiresNetworkEncryption() const {
79 return false;
80 }
81
78 bool EVWhitelistComponentInstallerTraits::OnCustomInstall( 82 bool EVWhitelistComponentInstallerTraits::OnCustomInstall(
79 const base::DictionaryValue& manifest, 83 const base::DictionaryValue& manifest,
80 const base::FilePath& install_dir) { 84 const base::FilePath& install_dir) {
81 VLOG(1) << "Entering EVWhitelistComponentInstallerTraits::OnCustomInstall."; 85 VLOG(1) << "Entering EVWhitelistComponentInstallerTraits::OnCustomInstall.";
82 86
83 return true; // Nothing custom here. 87 return true; // Nothing custom here.
84 } 88 }
85 89
86 base::FilePath EVWhitelistComponentInstallerTraits::GetInstalledPath( 90 base::FilePath EVWhitelistComponentInstallerTraits::GetInstalledPath(
87 const base::FilePath& base) { 91 const base::FilePath& base) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 DefaultComponentInstaller* installer = 142 DefaultComponentInstaller* installer =
139 new DefaultComponentInstaller(std::move(traits)); 143 new DefaultComponentInstaller(std::move(traits));
140 installer->Register(cus, base::Closure()); 144 installer->Register(cus, base::Closure());
141 145
142 content::BrowserThread::PostAfterStartupTask( 146 content::BrowserThread::PostAfterStartupTask(
143 FROM_HERE, content::BrowserThread::GetBlockingPool(), 147 FROM_HERE, content::BrowserThread::GetBlockingPool(),
144 base::Bind(&DeleteWhitelistCopy, user_data_dir)); 148 base::Bind(&DeleteWhitelistCopy, user_data_dir));
145 } 149 }
146 150
147 } // namespace component_updater 151 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698