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

Unified Diff: base/metrics/field_trial.cc

Issue 8510027: base: export GetBuildTime (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 | « base/metrics/field_trial.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/field_trial.cc
diff --git a/base/metrics/field_trial.cc b/base/metrics/field_trial.cc
index a18d72cb5aa8c9da8a2ced47a90e6ab806697d9b..999626295b00bfad4ef2a9a2fcf15693ec824ba9 100644
--- a/base/metrics/field_trial.cc
+++ b/base/metrics/field_trial.cc
@@ -4,11 +4,12 @@
#include "base/metrics/field_trial.h"
+#include "base/build_time.h"
#include "base/logging.h"
#include "base/rand_util.h"
#include "base/sha1.h"
-#include "base/string_util.h"
#include "base/stringprintf.h"
+#include "base/string_util.h"
#include "base/utf_string_conversions.h"
namespace base {
@@ -154,15 +155,6 @@ void FieldTrial::EnableBenchmarking() {
FieldTrial::~FieldTrial() {}
// static
-Time FieldTrial::GetBuildTime() {
- Time integral_build_time;
- const char* kDateTime = __DATE__ " " __TIME__;
- bool result = Time::FromString(kDateTime, &integral_build_time);
- DCHECK(result);
- return integral_build_time;
-}
-
-// static
double FieldTrial::HashClientId(const std::string& client_id,
const std::string& trial_name) {
// SHA-1 is designed to produce a uniformly random spread in its output space,
« no previous file with comments | « base/metrics/field_trial.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698