OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/chromeos/status/timezone_clock_updater.h" | |
6 | |
7 #include "chrome/browser/chromeos/status/clock_menu_button.h" | |
8 #include "chrome/browser/chromeos/system/timezone_settings.h" | |
9 | |
10 TimezoneClockUpdater::TimezoneClockUpdater(ClockMenuButton* button) | |
11 : button_(button) { | |
12 chromeos::system::TimezoneSettings::GetInstance()->AddObserver(this); | |
13 } | |
14 | |
15 TimezoneClockUpdater::~TimezoneClockUpdater() { | |
16 chromeos::system::TimezoneSettings::GetInstance()->RemoveObserver(this); | |
17 } | |
18 | |
19 void TimezoneClockUpdater::TimezoneChanged(const icu::TimeZone& timezone) { | |
20 button_->UpdateText(); | |
21 } | |
OLD | NEW |