| 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 "content/browser/time_zone_monitor.h" | 5 #include "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 content { | 12 namespace device { |
| 13 | 13 |
| 14 TimeZoneMonitor::TimeZoneMonitor() { | 14 TimeZoneMonitor::TimeZoneMonitor() { |
| 15 DCHECK(thread_checker_.CalledOnValidThread()); | 15 DCHECK(thread_checker_.CalledOnValidThread()); |
| 16 } | 16 } |
| 17 | 17 |
| 18 TimeZoneMonitor::~TimeZoneMonitor() { | 18 TimeZoneMonitor::~TimeZoneMonitor() { |
| 19 DCHECK(thread_checker_.CalledOnValidThread()); | 19 DCHECK(thread_checker_.CalledOnValidThread()); |
| 20 } | 20 } |
| 21 | 21 |
| 22 void TimeZoneMonitor::Bind(device::mojom::TimeZoneMonitorRequest request) { | 22 void TimeZoneMonitor::Bind(device::mojom::TimeZoneMonitorRequest request) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 52 [&zone_id_str](device::mojom::TimeZoneMonitorClient* client) { | 52 [&zone_id_str](device::mojom::TimeZoneMonitorClient* client) { |
| 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 content | 62 } // namespace device |
| OLD | NEW |