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

Side by Side Diff: ash/system/chromeos/system_clock_observer.cc

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/system/chromeos/system_clock_observer.h ('k') | ash/system/chromeos/tray_caps_lock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/system/chromeos/system_clock_observer.h" 5 #include "ash/system/chromeos/system_clock_observer.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/system/tray/system_tray_notifier.h" 8 #include "ash/system/tray/system_tray_notifier.h"
9 #include "chromeos/dbus/dbus_thread_manager.h" 9 #include "chromeos/dbus/dbus_thread_manager.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace internal {
13 12
14 SystemClockObserver::SystemClockObserver() { 13 SystemClockObserver::SystemClockObserver() {
15 chromeos::DBusThreadManager::Get()->GetSystemClockClient() 14 chromeos::DBusThreadManager::Get()->GetSystemClockClient()
16 ->AddObserver(this); 15 ->AddObserver(this);
17 chromeos::system::TimezoneSettings::GetInstance()->AddObserver(this); 16 chromeos::system::TimezoneSettings::GetInstance()->AddObserver(this);
18 } 17 }
19 18
20 SystemClockObserver::~SystemClockObserver() { 19 SystemClockObserver::~SystemClockObserver() {
21 chromeos::DBusThreadManager::Get()->GetSystemClockClient() 20 chromeos::DBusThreadManager::Get()->GetSystemClockClient()
22 ->RemoveObserver(this); 21 ->RemoveObserver(this);
23 chromeos::system::TimezoneSettings::GetInstance()->RemoveObserver(this); 22 chromeos::system::TimezoneSettings::GetInstance()->RemoveObserver(this);
24 } 23 }
25 24
26 void SystemClockObserver::SystemClockUpdated() { 25 void SystemClockObserver::SystemClockUpdated() {
27 Shell::GetInstance()->system_tray_notifier() 26 Shell::GetInstance()->system_tray_notifier()
28 ->NotifySystemClockTimeUpdated(); 27 ->NotifySystemClockTimeUpdated();
29 } 28 }
30 29
31 void SystemClockObserver::TimezoneChanged(const icu::TimeZone& timezone) { 30 void SystemClockObserver::TimezoneChanged(const icu::TimeZone& timezone) {
32 Shell::GetInstance()->system_tray_notifier()->NotifyRefreshClock(); 31 Shell::GetInstance()->system_tray_notifier()->NotifyRefreshClock();
33 } 32 }
34 33
35 } // namespace internal
36 } // namespace ash 34 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/chromeos/system_clock_observer.h ('k') | ash/system/chromeos/tray_caps_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698