| OLD | NEW |
| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 scoped_refptr<net::ct::EVCertsWhitelist> new_whitelist( | 46 scoped_refptr<net::ct::EVCertsWhitelist> new_whitelist( |
| 47 new packed_ct_ev_whitelist::PackedEVCertsWhitelist(compressed_list, | 47 new packed_ct_ev_whitelist::PackedEVCertsWhitelist(compressed_list, |
| 48 version)); | 48 version)); |
| 49 compressed_list.clear(); | 49 compressed_list.clear(); |
| 50 if (!new_whitelist->IsValid()) { | 50 if (!new_whitelist->IsValid()) { |
| 51 VLOG(1) << "Failed uncompressing EV certs whitelist."; | 51 VLOG(1) << "Failed uncompressing EV certs whitelist."; |
| 52 return; | 52 return; |
| 53 } | 53 } |
| 54 | 54 |
| 55 VLOG(0) << "EV whitelist: Sucessfully loaded."; | 55 VLOG(0) << "EV whitelist: Successfully loaded."; |
| 56 packed_ct_ev_whitelist::SetEVCertsWhitelist(new_whitelist); | 56 packed_ct_ev_whitelist::SetEVCertsWhitelist(new_whitelist); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace | 59 } // namespace |
| 60 | 60 |
| 61 namespace component_updater { | 61 namespace component_updater { |
| 62 | 62 |
| 63 // The SHA256 of the SubjectPublicKeyInfo used to sign the extension. | 63 // The SHA256 of the SubjectPublicKeyInfo used to sign the extension. |
| 64 // The extension id is: oafdbfcohdcjandcenmccfopbeklnicp | 64 // The extension id is: oafdbfcohdcjandcenmccfopbeklnicp |
| 65 const uint8_t kPublicKeySHA256[32] = { | 65 const uint8_t kPublicKeySHA256[32] = { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 DefaultComponentInstaller* installer = | 136 DefaultComponentInstaller* installer = |
| 137 new DefaultComponentInstaller(traits.Pass()); | 137 new DefaultComponentInstaller(traits.Pass()); |
| 138 installer->Register(cus, base::Closure()); | 138 installer->Register(cus, base::Closure()); |
| 139 | 139 |
| 140 content::BrowserThread::PostAfterStartupTask( | 140 content::BrowserThread::PostAfterStartupTask( |
| 141 FROM_HERE, content::BrowserThread::GetBlockingPool(), | 141 FROM_HERE, content::BrowserThread::GetBlockingPool(), |
| 142 base::Bind(&DeleteWhitelistCopy, user_data_dir)); | 142 base::Bind(&DeleteWhitelistCopy, user_data_dir)); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace component_updater | 145 } // namespace component_updater |
| OLD | NEW |