| 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 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_SYSTEM_SETTINGS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_SYSTEM_SETTINGS_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_SYSTEM_SETTINGS_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_SYSTEM_SETTINGS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "chromeos/settings/cros_settings_provider.h" | 13 #include "chromeos/settings/cros_settings_provider.h" |
| 14 #include "chromeos/settings/timezone_settings.h" | 14 #include "chromeos/settings/timezone_settings.h" |
| 15 #include "third_party/icu/source/i18n/unicode/timezone.h" | 15 #include "third_party/icu/source/i18n/unicode/timezone.h" |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class StringValue; | 18 class Value; |
| 19 using StringValue = Value; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace chromeos { | 22 namespace chromeos { |
| 22 | 23 |
| 23 class SystemSettingsProvider : public CrosSettingsProvider, | 24 class SystemSettingsProvider : public CrosSettingsProvider, |
| 24 public system::TimezoneSettings::Observer { | 25 public system::TimezoneSettings::Observer { |
| 25 public: | 26 public: |
| 26 explicit SystemSettingsProvider(const NotifyObserversCallback& notify_cb); | 27 explicit SystemSettingsProvider(const NotifyObserversCallback& notify_cb); |
| 27 ~SystemSettingsProvider() override; | 28 ~SystemSettingsProvider() override; |
| 28 | 29 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 39 void DoSet(const std::string& path, const base::Value& in_value) override; | 40 void DoSet(const std::string& path, const base::Value& in_value) override; |
| 40 | 41 |
| 41 std::unique_ptr<base::StringValue> timezone_value_; | 42 std::unique_ptr<base::StringValue> timezone_value_; |
| 42 | 43 |
| 43 DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider); | 44 DISALLOW_COPY_AND_ASSIGN(SystemSettingsProvider); |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 } // namespace chromeos | 47 } // namespace chromeos |
| 47 | 48 |
| 48 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_SYSTEM_SETTINGS_PROVIDER_H_ | 49 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_SYSTEM_SETTINGS_PROVIDER_H_ |
| OLD | NEW |