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

Unified Diff: net/base/build_time.h

Issue 8467031: net: make pinning enforcement timeout after ten weeks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | net/base/build_time.cc » ('j') | net/base/build_time.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/build_time.h
diff --git a/net/base/build_time.h b/net/base/build_time.h
new file mode 100644
index 0000000000000000000000000000000000000000..5d48daf52d5210300c2343b61e2d2fc786f4c778
--- /dev/null
+++ b/net/base/build_time.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_BASE_BUILD_TIME_
+#define NET_BASE_BUILD_TIME_
+#pragma once
+
+#include "net/base/net_export.h"
+
+namespace net {
+
+// GetDaysSinceBuild returns the number of days since the current binary was
+// built.
+//
+// This uses the __DATE__ macro, which doesn't trigger a rebuild when it
+// changes. However, official builds will always be rebuilt from scratch.
+int NET_EXPORT GetDaysSinceBuild();
wtc 2011/11/08 19:43:40 This function should be in src/base. I am a littl
+
+} // namespace net
+
+#endif // NET_BASE_BUILD_TIME_
« no previous file with comments | « no previous file | net/base/build_time.cc » ('j') | net/base/build_time.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698