#include "third_party/icu/source/i18n/unicode/timezone.h"
#endif
+#if BUILDFLAG(IS_TIZEN_TV)
+#include "base/command_line.h"
+#endif
+
namespace base::i18n {
#if !BUILDFLAG(IS_NACL)
// To respond to the time zone change properly, the default time zone
// cache in ICU has to be populated on starting up.
// See TimeZoneMonitorLinux::NotifyClientsFromImpl().
+#if BUILDFLAG(IS_TIZEN_TV)
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ base::FilePath program =
+ command_line ? command_line->GetProgram() : base::FilePath("");
+ if (program.value() == "/usr/bin/wrt-loader") {
+ LOG(INFO) << "do not make TimeZone cache on wrt-loader";
+ std::unique_ptr<icu::TimeZone> zone(icu::TimeZone::detectHostTimeZone());
+ } else {
+ std::unique_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault());
+ }
+#else
std::unique_ptr<icu::TimeZone> zone(icu::TimeZone::createDefault());
+#endif
#endif // BUILDFLAG(IS_ANDROID)
}