| Index: base/time/time.cc
|
| diff --git a/base/time/time.cc b/base/time/time.cc
|
| index 9fb9cdfab735a8086e6a9103b6d638f1205760d0..d1c6a4783cf2d3ff8037ee1ba8a0fb5914a23b44 100644
|
| --- a/base/time/time.cc
|
| +++ b/base/time/time.cc
|
| @@ -230,7 +230,12 @@ Time Time::LocalMidnight() const {
|
| exploded.minute = 0;
|
| exploded.second = 0;
|
| exploded.millisecond = 0;
|
| - return FromLocalExploded(exploded);
|
| + Time out_time;
|
| + if (FromLocalExploded(exploded, &out_time))
|
| + return out_time;
|
| + // This function must not fail.
|
| + NOTREACHED();
|
| + return Time();
|
| }
|
|
|
| // static
|
|
|