Index: base/metrics/field_trial.cc |
diff --git a/base/metrics/field_trial.cc b/base/metrics/field_trial.cc |
index 430cae0b7287d1c3f400ad64afdc272b3a4fd0dc..600b94ed48391dd483ad73e7036da7d45037c859 100644 |
--- a/base/metrics/field_trial.cc |
+++ b/base/metrics/field_trial.cc |
@@ -44,8 +44,14 @@ Time CreateTimeFromParams(int year, int month, int day_of_month) { |
exploded.minute = 0; |
exploded.second = 0; |
exploded.millisecond = 0; |
+ Time out_time; |
+ if (!Time::FromLocalExploded(exploded, &out_time)) { |
+ // TODO(maksims): implement failure handling. |
+ // We might just return |out_time|, which is Time(0). |
+ NOTIMPLEMENTED(); |
+ } |
- return Time::FromLocalExploded(exploded); |
+ return out_time; |
} |
// Returns the boundary value for comparing against the FieldTrial's added |