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

Unified Diff: chrome/browser/component_updater/ev_whitelist_component_installer.cc

Issue 811353002: Move CT EV white list packaging API from chrome/ to components/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed missed nit Created 5 years, 11 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
« no previous file with comments | « chrome/browser/component_updater/DEPS ('k') | chrome/browser/net/bit_stream_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/ev_whitelist_component_installer.cc
diff --git a/chrome/browser/component_updater/ev_whitelist_component_installer.cc b/chrome/browser/component_updater/ev_whitelist_component_installer.cc
index bb5881c3d99de565e677445b8d0d6016ef02f2a0..42d987c4f6e56a72da8b6122ec8c340b0a0c145d 100644
--- a/chrome/browser/component_updater/ev_whitelist_component_installer.cc
+++ b/chrome/browser/component_updater/ev_whitelist_component_installer.cc
@@ -15,8 +15,8 @@
#include "base/numerics/safe_conversions.h"
#include "base/path_service.h"
#include "base/version.h"
-#include "chrome/browser/net/packed_ct_ev_whitelist.h"
#include "components/component_updater/component_updater_paths.h"
+#include "components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h"
#include "content/public/browser/browser_thread.h"
#include "net/ssl/ssl_config_service.h"
@@ -42,7 +42,8 @@ void UpdateNewWhitelistData(const base::FilePath& new_whitelist_file,
}
scoped_refptr<net::ct::EVCertsWhitelist> new_whitelist(
- new PackedEVCertsWhitelist(compressed_list, version));
+ new packed_ct_ev_whitelist::PackedEVCertsWhitelist(compressed_list,
+ version));
if (!new_whitelist->IsValid()) {
VLOG(1) << "Failed uncompressing EV certs whitelist.";
return;
@@ -56,7 +57,7 @@ void UpdateNewWhitelistData(const base::FilePath& new_whitelist_file,
}
}
- SetEVCertsWhitelist(new_whitelist);
+ packed_ct_ev_whitelist::SetEVCertsWhitelist(new_whitelist);
}
void DoInitialLoadFromDisk(const base::FilePath& stored_whitelist_path) {
@@ -77,14 +78,15 @@ void DoInitialLoadFromDisk(const base::FilePath& stored_whitelist_path) {
// In practice very quickly the component updater will call ComponentReady
// which will have a valid version.
scoped_refptr<net::ct::EVCertsWhitelist> new_whitelist(
- new PackedEVCertsWhitelist(compressed_list, Version()));
+ new packed_ct_ev_whitelist::PackedEVCertsWhitelist(compressed_list,
+ Version()));
if (!new_whitelist->IsValid()) {
VLOG(1) << "Failed uncompressing EV certs whitelist.";
return;
}
VLOG(1) << "EV whitelist: Sucessfully loaded initial data.";
- SetEVCertsWhitelist(new_whitelist);
+ packed_ct_ev_whitelist::SetEVCertsWhitelist(new_whitelist);
}
} // namespace
« no previous file with comments | « chrome/browser/component_updater/DEPS ('k') | chrome/browser/net/bit_stream_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698