| 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 #include "chrome/browser/chromeos/system/system_clock.h" | 5 #include "chrome/browser/chromeos/system/system_clock.h" |
| 6 | 6 |
| 7 #include <memory> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" | 11 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" |
| 11 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" | 12 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" |
| 12 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 13 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 13 #include "chrome/browser/chromeos/settings/cros_settings.h" | 14 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 14 #include "chrome/browser/chromeos/system/system_clock_observer.h" | 15 #include "chrome/browser/chromeos/system/system_clock_observer.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
| 17 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 18 #include "chromeos/login/login_state.h" | 19 #include "chromeos/login/login_state.h" |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // This also works for enterprise-managed devices because they never have | 211 // This also works for enterprise-managed devices because they never have |
| 211 // a local owner. | 212 // a local owner. |
| 212 if (user_manager::UserManager::Get()->IsCurrentUserOwner()) | 213 if (user_manager::UserManager::Get()->IsCurrentUserOwner()) |
| 213 SetShouldUse24HourClock(ShouldUse24HourClock()); | 214 SetShouldUse24HourClock(ShouldUse24HourClock()); |
| 214 FOR_EACH_OBSERVER(SystemClockObserver, observer_list_, | 215 FOR_EACH_OBSERVER(SystemClockObserver, observer_list_, |
| 215 OnSystemClockChanged(this)); | 216 OnSystemClockChanged(this)); |
| 216 } | 217 } |
| 217 | 218 |
| 218 } // namespace system | 219 } // namespace system |
| 219 } // namespace chromeos | 220 } // namespace chromeos |
| OLD | NEW |