| Index: ios/chrome/browser/ui/webui/history/browsing_history_handler.cc
|
| diff --git a/ios/chrome/browser/ui/webui/history/browsing_history_handler.cc b/ios/chrome/browser/ui/webui/history/browsing_history_handler.cc
|
| index 5b5b8d5e3989b7e34dbb92931fb82d7fa03055f5..ff0cf8ec1a277ee9f4a4f8cb2efd7ff3cc88534e 100644
|
| --- a/ios/chrome/browser/ui/webui/history/browsing_history_handler.cc
|
| +++ b/ios/chrome/browser/ui/webui/history/browsing_history_handler.cc
|
| @@ -801,7 +801,11 @@ void BrowsingHistoryHandler::SetQueryTimeInMonths(
|
| exploded.day_of_month = 1;
|
|
|
| if (offset == 0) {
|
| - options->begin_time = base::Time::FromLocalExploded(exploded);
|
| + if (!base::Time::FromLocalExploded(exploded, &options->begin_time)) {
|
| + // This file will be deprecated soon. No need to implement failure
|
| + // handling here.
|
| + NOTIMPLEMENTED();
|
| + }
|
|
|
| // Set the end time of this first search to null (which will
|
| // show results from the future, should the user's clock have
|
| @@ -815,12 +819,20 @@ void BrowsingHistoryHandler::SetQueryTimeInMonths(
|
| exploded.month -= offset - 1;
|
| // Set the correct year.
|
| NormalizeMonths(&exploded);
|
| - options->end_time = base::Time::FromLocalExploded(exploded);
|
| + if (!base::Time::FromLocalExploded(exploded, &options->end_time)) {
|
| + // This file will be deprecated soon. No need to implement failure
|
| + // handling here.
|
| + NOTIMPLEMENTED();
|
| + }
|
|
|
| exploded.month -= 1;
|
| // Set the correct year
|
| NormalizeMonths(&exploded);
|
| - options->begin_time = base::Time::FromLocalExploded(exploded);
|
| + if (!base::Time::FromLocalExploded(exploded, &options->begin_time)) {
|
| + // This file will be deprecated soon. No need to implement failure
|
| + // handling here.
|
| + NOTIMPLEMENTED();
|
| + }
|
| }
|
| }
|
|
|
|
|