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

Unified Diff: net/third_party/nss/patches/removebuildmetadata.patch

Issue 691193002: Remove a reference to __DATE__ and __TIME__ from nss for non official builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « net/third_party/nss/patches/applypatches.sh ('k') | net/third_party/nss/ssl/sslver.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/third_party/nss/patches/removebuildmetadata.patch
diff --git a/net/third_party/nss/patches/removebuildmetadata.patch b/net/third_party/nss/patches/removebuildmetadata.patch
new file mode 100644
index 0000000000000000000000000000000000000000..018fcbb4f1f5971ac0746aaf390c2e9aafdd3b32
--- /dev/null
+++ b/net/third_party/nss/patches/removebuildmetadata.patch
@@ -0,0 +1,27 @@
+diff --git a/net/third_party/nss/ssl/sslver.c b/net/third_party/nss/ssl/sslver.c
+index 35e0317..ea60888 100644
+--- a/net/third_party/nss/ssl/sslver.c
++++ b/net/third_party/nss/ssl/sslver.c
+@@ -12,6 +12,13 @@
+ #define _DEBUG_STRING ""
+ #endif
+
++#if defined(DONT_EMBED_BUILD_METADATA) && !defined(OFFICIAL_BUILD)
++#define _DATE_AND_TIME "Sep 02 2008 08:00:00"
++#else
++#define _DATE_AND_TIME __DATE__ " " __TIME__
++#endif
++
++
+ /*
+ * Version information for the 'ident' and 'what commands
+ *
+@@ -19,6 +26,6 @@
+ * must not end in a '$' to prevent rcs keyword substitution.
+ */
+ const char __nss_ssl_rcsid[] = "$Header: NSS " NSS_VERSION _DEBUG_STRING
+- " " __DATE__ " " __TIME__ " $";
++ " " _DATE_AND_TIME " $";
+ const char __nss_ssl_sccsid[] = "@(#)NSS " NSS_VERSION _DEBUG_STRING
+- " " __DATE__ " " __TIME__;
++ " " _DATE_AND_TIME;
« no previous file with comments | « net/third_party/nss/patches/applypatches.sh ('k') | net/third_party/nss/ssl/sslver.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698