| 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 "content/browser/time_zone_monitor.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" |
| 8 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 9 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
| 10 #include "third_party/icu/source/common/unicode/unistr.h" | 11 #include "third_party/icu/source/common/unicode/unistr.h" |
| 11 #include "third_party/icu/source/i18n/unicode/timezone.h" | 12 #include "third_party/icu/source/i18n/unicode/timezone.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 | 15 |
| 15 TimeZoneMonitor::TimeZoneMonitor() { | 16 TimeZoneMonitor::TimeZoneMonitor() { |
| 16 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 17 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 17 } | 18 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 46 VLOG(1) << "timezone reset to " << zone_id_str; | 47 VLOG(1) << "timezone reset to " << zone_id_str; |
| 47 for (RenderProcessHost::iterator iterator = | 48 for (RenderProcessHost::iterator iterator = |
| 48 RenderProcessHost::AllHostsIterator(); | 49 RenderProcessHost::AllHostsIterator(); |
| 49 !iterator.IsAtEnd(); | 50 !iterator.IsAtEnd(); |
| 50 iterator.Advance()) { | 51 iterator.Advance()) { |
| 51 iterator.GetCurrentValue()->NotifyTimezoneChange(zone_id_str); | 52 iterator.GetCurrentValue()->NotifyTimezoneChange(zone_id_str); |
| 52 } | 53 } |
| 53 } | 54 } |
| 54 | 55 |
| 55 } // namespace content | 56 } // namespace content |
| OLD | NEW |