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

Unified Diff: chrome/common/net/x509_certificate_model.h

Issue 1930173002: Disable inclusion of x509_certificate_model.h on unsupported platforms. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/x509_certificate_model.h
diff --git a/chrome/common/net/x509_certificate_model.h b/chrome/common/net/x509_certificate_model.h
index 6a8987a52f15eeba8cba3cb2d64829bc9d2c6fd0..b6062399c19ab8645ac9bae7b29b8aa1878159d6 100644
--- a/chrome/common/net/x509_certificate_model.h
+++ b/chrome/common/net/x509_certificate_model.h
@@ -5,6 +5,10 @@
#ifndef CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
#define CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
+#if !defined(USE_NSS_CERTS) && !defined(USE_OPENSSL_CERTS)
+#error "This file must be built with either USE_NSS_CERTS or USE_OPENSSL_CERTS."
+#else
+
#include <stddef.h>
#include "net/cert/cert_type.h"
@@ -124,4 +128,6 @@ std::string ProcessRawBits(const unsigned char* data,
} // namespace x509_certificate_model
+#endif // !defined(USE_NSS_CERTS) && !defined(USE_OPENSSL_CERTS)
+
#endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698