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

Unified Diff: components/cast_certificate/cast_cert_validator.cc

Issue 1924323002: Move Cast certificate verification code from extensions to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified OWNERS files 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 side-by-side diff with in-line comments
Download patch
Index: components/cast_certificate/cast_cert_validator.cc
diff --git a/extensions/common/cast/cast_cert_validator.cc b/components/cast_certificate/cast_cert_validator.cc
similarity index 97%
rename from extensions/common/cast/cast_cert_validator.cc
rename to components/cast_certificate/cast_cert_validator.cc
index b01a30054dc6ca5091f5c58f591565fd6339e694..3a3ce0b091404cd882f0a7010f5cbf7df70e8be3 100644
--- a/extensions/common/cast/cast_cert_validator.cc
+++ b/components/cast_certificate/cast_cert_validator.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "extensions/common/cast/cast_cert_validator.h"
+#include "components/cast_certificate/cast_cert_validator.h"
#include <stddef.h>
#include <stdint.h>
@@ -23,9 +23,7 @@
#include "net/cert/internal/verify_signed_data.h"
#include "net/der/input.h"
-namespace extensions {
-namespace api {
-namespace cast_crypto {
+namespace cast_certificate {
namespace {
// -------------------------------------------------------------------------
@@ -39,8 +37,8 @@ namespace {
//
// These constants are defined by the files included next:
-#include "extensions/common/cast/cast_root_ca_cert_der-inc.h"
-#include "extensions/common/cast/eureka_root_ca_der-inc.h"
+#include "components/cast_certificate/cast_root_ca_cert_der-inc.h"
+#include "components/cast_certificate/eureka_root_ca_der-inc.h"
// Singleton for the Cast trust store.
class CastTrustStore {
@@ -242,7 +240,6 @@ WARN_UNUSED_RESULT bool CheckTargetCertificate(
return true;
}
-
// Converts a base::Time::Exploded to a net::der::GeneralizedTime.
net::der::GeneralizedTime ConvertExplodedTime(
const base::Time::Exploded& exploded) {
@@ -297,6 +294,4 @@ bool AddTrustAnchorForTest(const uint8_t* data, size_t length) {
length);
}
-} // namespace cast_crypto
-} // namespace api
-} // namespace extensions
+} // namespace cast_certificate
« no previous file with comments | « components/cast_certificate/cast_cert_validator.h ('k') | components/cast_certificate/cast_cert_validator_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698