| 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
|
|
|