mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
base: Don't fix Y2038 problem with icu
This commit is contained in:
parent
b0b02992c5
commit
26f1f45119
@ -2203,7 +2203,7 @@ component("base") {
|
|||||||
|
|
||||||
# TODO(b/167763382) Find an alternate solution for Chromecast devices, since
|
# TODO(b/167763382) Find an alternate solution for Chromecast devices, since
|
||||||
# adding the icui18n and icuuc deps significantly increases the binary size.
|
# adding the icui18n and icuuc deps significantly increases the binary size.
|
||||||
if (!is_castos && !is_cast_android) {
|
if (false) {
|
||||||
sources += [ "time/time_exploded_icu.cc" ]
|
sources += [ "time/time_exploded_icu.cc" ]
|
||||||
|
|
||||||
# The ICU dependency is only needed on systems with a 32-bit time_t.
|
# The ICU dependency is only needed on systems with a 32-bit time_t.
|
||||||
|
@ -830,6 +830,7 @@ class BASE_EXPORT Time : public time_internal::TimeBase<Time> {
|
|||||||
|
|
||||||
// Some platforms use the ICU library to provide To/FromExploded, when their
|
// Some platforms use the ICU library to provide To/FromExploded, when their
|
||||||
// native library implementations are insufficient in some way.
|
// native library implementations are insufficient in some way.
|
||||||
|
#if 0
|
||||||
static void ExplodeUsingIcu(int64_t millis_since_unix_epoch,
|
static void ExplodeUsingIcu(int64_t millis_since_unix_epoch,
|
||||||
bool is_local,
|
bool is_local,
|
||||||
Exploded* exploded);
|
Exploded* exploded);
|
||||||
@ -837,6 +838,7 @@ class BASE_EXPORT Time : public time_internal::TimeBase<Time> {
|
|||||||
bool is_local,
|
bool is_local,
|
||||||
const Exploded& exploded,
|
const Exploded& exploded,
|
||||||
int64_t* millis_since_unix_epoch);
|
int64_t* millis_since_unix_epoch);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Rounds down the time to the nearest day in either local time
|
// Rounds down the time to the nearest day in either local time
|
||||||
// |is_local = true| or UTC |is_local = false|.
|
// |is_local = true| or UTC |is_local = false|.
|
||||||
|
@ -128,7 +128,7 @@ void Time::Explode(bool is_local, Exploded* exploded) const {
|
|||||||
if (sizeof(SysTime) < 8) {
|
if (sizeof(SysTime) < 8) {
|
||||||
// TODO(b/167763382) Find an alternate solution for Chromecast devices, since
|
// TODO(b/167763382) Find an alternate solution for Chromecast devices, since
|
||||||
// adding the icui18n dep significantly increases the binary size.
|
// adding the icui18n dep significantly increases the binary size.
|
||||||
#if !BUILDFLAG(IS_CASTOS) && !BUILDFLAG(IS_CAST_ANDROID)
|
#if 0
|
||||||
ExplodeUsingIcu(millis_since_unix_epoch, is_local, exploded);
|
ExplodeUsingIcu(millis_since_unix_epoch, is_local, exploded);
|
||||||
return;
|
return;
|
||||||
#endif // !BUILDFLAG(IS_CASTOS) && !BUILDFLAG(IS_CAST_ANDROID)
|
#endif // !BUILDFLAG(IS_CASTOS) && !BUILDFLAG(IS_CAST_ANDROID)
|
||||||
|
Loading…
Reference in New Issue
Block a user