Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: chrome/browser/chromeos/status/timezone_clock_updater.cc

Issue 8600001: Fixes bug where clock button wasn't updating in response to a timezone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge and allow NULL Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/timezone_clock_updater.h ('k') | chrome/browser/ui/views/aura/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698