From b792cd7396313b356ab91c77c414f4e6c9343482 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Wed, 18 Nov 2020 22:51:53 +0800 Subject: [PATCH] base: Don't fix Y2038 problem with icu --- src/base/BUILD.gn | 2 +- src/base/time/time.h | 2 ++ src/base/time/time_exploded_posix.cc | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/base/BUILD.gn b/src/base/BUILD.gn index 838b171fe1..abda88c076 100644 --- a/src/base/BUILD.gn +++ b/src/base/BUILD.gn @@ -2333,7 +2333,7 @@ component("base") { # headers which allows representing time as int64, which makes this entire # problem moot. Hence, why `!is_cronet_build` flag has been added. # See crbug.com/431972096#comment10 for more information. - if (!is_castos && !is_cast_android && !is_cronet_build) { + if (false) { sources += [ "time/time_exploded_icu.cc" ] # The ICU dependency is only needed on systems with a 32-bit time_t. diff --git a/src/base/time/time.h b/src/base/time/time.h index d21e4da349..2f1da1920f 100644 --- a/src/base/time/time.h +++ b/src/base/time/time.h @@ -845,6 +845,7 @@ class BASE_EXPORT Time : public time_internal::TimeBase