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

Unified Diff: ash/common/system/chromeos/system_clock_observer.cc

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 months 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
« no previous file with comments | « ash/common/system/chromeos/system_clock_observer.h ('k') | ash/common/system/chromeos/tray_caps_lock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/system_clock_observer.cc
diff --git a/ash/common/system/chromeos/system_clock_observer.cc b/ash/common/system/chromeos/system_clock_observer.cc
deleted file mode 100644
index 984c6ca11aa406935bf27589163994dad492d91e..0000000000000000000000000000000000000000
--- a/ash/common/system/chromeos/system_clock_observer.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2013 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.
-
-#include "ash/common/system/chromeos/system_clock_observer.h"
-
-#include "ash/common/system/tray/system_tray_notifier.h"
-#include "ash/common/wm_shell.h"
-#include "chromeos/dbus/dbus_thread_manager.h"
-
-namespace ash {
-
-SystemClockObserver::SystemClockObserver() {
- chromeos::DBusThreadManager::Get()->GetSystemClockClient()->AddObserver(this);
- chromeos::system::TimezoneSettings::GetInstance()->AddObserver(this);
- can_set_time_ =
- chromeos::DBusThreadManager::Get()->GetSystemClockClient()->CanSetTime();
-}
-
-SystemClockObserver::~SystemClockObserver() {
- chromeos::DBusThreadManager::Get()->GetSystemClockClient()->RemoveObserver(
- this);
- chromeos::system::TimezoneSettings::GetInstance()->RemoveObserver(this);
-}
-
-void SystemClockObserver::SystemClockUpdated() {
- WmShell::Get()->system_tray_notifier()->NotifySystemClockTimeUpdated();
-}
-
-void SystemClockObserver::SystemClockCanSetTimeChanged(bool can_set_time) {
- can_set_time_ = can_set_time;
- WmShell::Get()->system_tray_notifier()->NotifySystemClockCanSetTimeChanged(
- can_set_time_);
-}
-
-void SystemClockObserver::TimezoneChanged(const icu::TimeZone& timezone) {
- WmShell::Get()->system_tray_notifier()->NotifyRefreshClock();
-}
-
-} // namespace ash
« no previous file with comments | « ash/common/system/chromeos/system_clock_observer.h ('k') | ash/common/system/chromeos/tray_caps_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698