OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "device/time_zone_monitor/time_zone_monitor.h" | 5 #include "services/device/time_zone_monitor/time_zone_monitor.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "third_party/icu/source/common/unicode/unistr.h" | 9 #include "third_party/icu/source/common/unicode/unistr.h" |
10 #include "third_party/icu/source/i18n/unicode/timezone.h" | 10 #include "third_party/icu/source/i18n/unicode/timezone.h" |
11 | 11 |
12 namespace device { | 12 namespace device { |
13 | 13 |
14 TimeZoneMonitor::TimeZoneMonitor() { | 14 TimeZoneMonitor::TimeZoneMonitor() { |
15 DCHECK(thread_checker_.CalledOnValidThread()); | 15 DCHECK(thread_checker_.CalledOnValidThread()); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 client->OnTimeZoneChange(zone_id_str); | 53 client->OnTimeZoneChange(zone_id_str); |
54 }); | 54 }); |
55 } | 55 } |
56 | 56 |
57 void TimeZoneMonitor::AddClient( | 57 void TimeZoneMonitor::AddClient( |
58 device::mojom::TimeZoneMonitorClientPtr client) { | 58 device::mojom::TimeZoneMonitorClientPtr client) { |
59 clients_.AddPtr(std::move(client)); | 59 clients_.AddPtr(std::move(client)); |
60 } | 60 } |
61 | 61 |
62 } // namespace device | 62 } // namespace device |
OLD | NEW |