From 9150bb94f0be6df65eccb9218f681c40c4338502 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 9e8e055293..5b4579f40b 100644 --- a/src/base/BUILD.gn +++ b/src/base/BUILD.gn @@ -2355,7 +2355,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 8365d89644..4816fb7339 100644 --- a/src/base/time/time.h +++ b/src/base/time/time.h @@ -846,6 +846,7 @@ class BASE_EXPORT Time : public time_internal::TimeBase