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

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

Issue 2205693004: Rename and repurpose ComponentInstallerTraits::CanAutoUpdate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cus-gp
Patch Set: rebase Created 4 years, 4 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 <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // The SHA256 of the SubjectPublicKeyInfo used to sign the extension. 66 // The SHA256 of the SubjectPublicKeyInfo used to sign the extension.
67 // The extension id is: oafdbfcohdcjandcenmccfopbeklnicp 67 // The extension id is: oafdbfcohdcjandcenmccfopbeklnicp
68 const uint8_t kPublicKeySHA256[32] = { 68 const uint8_t kPublicKeySHA256[32] = {
69 0xe0, 0x53, 0x15, 0x2e, 0x73, 0x29, 0x0d, 0x32, 0x4d, 0xc2, 0x25, 69 0xe0, 0x53, 0x15, 0x2e, 0x73, 0x29, 0x0d, 0x32, 0x4d, 0xc2, 0x25,
70 0xef, 0x14, 0xab, 0xd8, 0x2f, 0x84, 0xf5, 0x85, 0x9e, 0xc0, 0xfa, 70 0xef, 0x14, 0xab, 0xd8, 0x2f, 0x84, 0xf5, 0x85, 0x9e, 0xc0, 0xfa,
71 0x94, 0xbc, 0x99, 0xc9, 0x5a, 0x27, 0x55, 0x19, 0x83, 0xef}; 71 0x94, 0xbc, 0x99, 0xc9, 0x5a, 0x27, 0x55, 0x19, 0x83, 0xef};
72 72
73 const char kEVWhitelistManifestName[] = "EV Certs CT whitelist"; 73 const char kEVWhitelistManifestName[] = "EV Certs CT whitelist";
74 74
75 bool EVWhitelistComponentInstallerTraits::CanAutoUpdate() const { 75 bool EVWhitelistComponentInstallerTraits::
76 return true; 76 SupportsGroupPolicyEnabledComponentUpdates() const {
77 return false;
77 } 78 }
78 79
79 bool EVWhitelistComponentInstallerTraits::RequiresNetworkEncryption() const { 80 bool EVWhitelistComponentInstallerTraits::RequiresNetworkEncryption() const {
80 return false; 81 return false;
81 } 82 }
82 83
83 bool EVWhitelistComponentInstallerTraits::OnCustomInstall( 84 bool EVWhitelistComponentInstallerTraits::OnCustomInstall(
84 const base::DictionaryValue& manifest, 85 const base::DictionaryValue& manifest,
85 const base::FilePath& install_dir) { 86 const base::FilePath& install_dir) {
86 VLOG(1) << "Entering EVWhitelistComponentInstallerTraits::OnCustomInstall."; 87 VLOG(1) << "Entering EVWhitelistComponentInstallerTraits::OnCustomInstall.";
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 DefaultComponentInstaller* installer = 153 DefaultComponentInstaller* installer =
153 new DefaultComponentInstaller(std::move(traits)); 154 new DefaultComponentInstaller(std::move(traits));
154 installer->Register(cus, base::Closure()); 155 installer->Register(cus, base::Closure());
155 156
156 content::BrowserThread::PostAfterStartupTask( 157 content::BrowserThread::PostAfterStartupTask(
157 FROM_HERE, content::BrowserThread::GetBlockingPool(), 158 FROM_HERE, content::BrowserThread::GetBlockingPool(),
158 base::Bind(&DeleteWhitelistCopy, user_data_dir)); 159 base::Bind(&DeleteWhitelistCopy, user_data_dir));
159 } 160 }
160 161
161 } // namespace component_updater 162 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698