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_ |