| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_SYSTEM_CLOCK_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_SYSTEM_CLOCK_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_SYSTEM_CLOCK_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_SYSTEM_CLOCK_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback_list.h" | 10 #include "base/callback_list.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 void RemoveObserver(SystemClockObserver* observer); | 46 void RemoveObserver(SystemClockObserver* observer); |
| 47 | 47 |
| 48 bool ShouldUse24HourClock() const; | 48 bool ShouldUse24HourClock() const; |
| 49 | 49 |
| 50 // content::NotificationObserver implementation. | 50 // content::NotificationObserver implementation. |
| 51 void Observe(int type, | 51 void Observe(int type, |
| 52 const content::NotificationSource& source, | 52 const content::NotificationSource& source, |
| 53 const content::NotificationDetails& details) override; | 53 const content::NotificationDetails& details) override; |
| 54 | 54 |
| 55 // user_manager::UserManager::UserSessionStateObserver overrides | 55 // user_manager::UserManager::UserSessionStateObserver overrides |
| 56 void ActiveUserChanged(const user_manager::User* user) override; | 56 void ActiveUserChanged(const user_manager::User* active_user) override; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 // Should be the same as CrosSettings::ObserverSubscription. | 59 // Should be the same as CrosSettings::ObserverSubscription. |
| 60 typedef base::CallbackList<void(void)>::Subscription | 60 typedef base::CallbackList<void(void)>::Subscription |
| 61 CrosSettingsObserverSubscription; | 61 CrosSettingsObserverSubscription; |
| 62 | 62 |
| 63 void OnActiveProfileChanged(Profile* profile); | 63 void OnActiveProfileChanged(Profile* profile); |
| 64 bool OnProfileDestroyed(Profile* profile); | 64 bool OnProfileDestroyed(Profile* profile); |
| 65 | 65 |
| 66 // LoginState::Observer overrides. | 66 // LoginState::Observer overrides. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 81 | 81 |
| 82 std::unique_ptr<CrosSettingsObserverSubscription> device_settings_observer_; | 82 std::unique_ptr<CrosSettingsObserverSubscription> device_settings_observer_; |
| 83 | 83 |
| 84 DISALLOW_COPY_AND_ASSIGN(SystemClock); | 84 DISALLOW_COPY_AND_ASSIGN(SystemClock); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace system | 87 } // namespace system |
| 88 } // namespace chromeos | 88 } // namespace chromeos |
| 89 | 89 |
| 90 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_SYSTEM_CLOCK_H_ | 90 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_SYSTEM_CLOCK_H_ |
| OLD | NEW |