blob: cff5f136f8445e051ed85f0b68f9d44cdc488eb1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- services/device/time_zone_monitor/time_zone_monitor_linux.cc.orig 2020-03-16 18:39:54 UTC
+++ services/device/time_zone_monitor/time_zone_monitor_linux.cc
@@ -127,7 +127,11 @@ class TimeZoneMonitorLinuxImpl
// false positives are harmless, assuming the false positive rate is
// reasonable.
const char* const kFilesToWatch[] = {
+#if defined(OS_BSD)
+ "/etc/localtime",
+#else
"/etc/localtime", "/etc/timezone", "/etc/TZ",
+#endif
};
for (size_t index = 0; index < base::size(kFilesToWatch); ++index) {
file_path_watchers_.push_back(std::make_unique<base::FilePathWatcher>());
|