OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_settings_provider.h" | 5 #include "chrome/browser/chromeos/settings/system_settings_provider.h" |
6 | 6 |
7 #include "base/string16.h" | 7 #include "base/string16.h" |
8 #include "base/time.h" | 8 #include "base/time.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/chromeos/cros_settings.h" | |
11 #include "chrome/browser/chromeos/cros_settings_names.h" | |
12 #include "chrome/browser/chromeos/login/user_manager.h" | 10 #include "chrome/browser/chromeos/login/user_manager.h" |
| 11 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 12 #include "chrome/browser/chromeos/settings/cros_settings_names.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 SystemSettingsProvider::SystemSettingsProvider( | 18 SystemSettingsProvider::SystemSettingsProvider( |
19 const NotifyObserversCallback& notify_cb) | 19 const NotifyObserversCallback& notify_cb) |
20 : CrosSettingsProvider(notify_cb) { | 20 : CrosSettingsProvider(notify_cb) { |
21 system::TimezoneSettings *timezone_settings = | 21 system::TimezoneSettings *timezone_settings = |
22 system::TimezoneSettings::GetInstance(); | 22 system::TimezoneSettings::GetInstance(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 } | 66 } |
67 | 67 |
68 void SystemSettingsProvider::TimezoneChanged(const icu::TimeZone& timezone) { | 68 void SystemSettingsProvider::TimezoneChanged(const icu::TimeZone& timezone) { |
69 // Fires system setting change notification. | 69 // Fires system setting change notification. |
70 timezone_value_.reset(base::Value::CreateStringValue( | 70 timezone_value_.reset(base::Value::CreateStringValue( |
71 system::TimezoneSettings::GetTimezoneID(timezone))); | 71 system::TimezoneSettings::GetTimezoneID(timezone))); |
72 NotifyObservers(kSystemTimezone); | 72 NotifyObservers(kSystemTimezone); |
73 } | 73 } |
74 | 74 |
75 } // namespace chromeos | 75 } // namespace chromeos |
OLD | NEW |