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

Unified Diff: chrome/browser/chromeos/status/timezone_clock_updater.h

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: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/status/timezone_clock_updater.h
diff --git a/chrome/browser/chromeos/status/timezone_clock_updater.h b/chrome/browser/chromeos/status/timezone_clock_updater.h
new file mode 100644
index 0000000000000000000000000000000000000000..d5a3aee8192de908dfcaf6497799270c6aedd8a6
--- /dev/null
+++ b/chrome/browser/chromeos/status/timezone_clock_updater.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_STATUS_TIMEZONE_CLOCK_UPDATER_H_
+#define CHROME_BROWSER_CHROMEOS_STATUS_TIMEZONE_CLOCK_UPDATER_H_
+#pragma once
+
+#include "chrome/browser/chromeos/system/timezone_settings.h"
+
+class ClockMenuButton;
+
+// TimezoneClockUpdater is responsible for updating a ClockMenuButton when the
+// timezone changes.
+class TimezoneClockUpdater
+ : public chromeos::system::TimezoneSettings::Observer {
+ public:
+ explicit TimezoneClockUpdater(ClockMenuButton* button);
+ virtual ~TimezoneClockUpdater();
+
+ // TimezoneSettings::Observer overrides:
+ virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE;
+
+ private:
+ ClockMenuButton* button_;
+
+ DISALLOW_COPY_AND_ASSIGN(TimezoneClockUpdater);
+};
+
+#endif // CHROME_BROWSER_CHROMEOS_STATUS_TIMEZONE_CLOCK_UPDATER_H_

Powered by Google App Engine
This is Rietveld 408576698