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_STUB_CROS_SETTINGS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_STUB_CROS_SETTINGS_PROVIDER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_STUB_CROS_SETTINGS_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_STUB_CROS_SETTINGS_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/prefs/pref_value_map.h" | 11 #include "base/prefs/pref_value_map.h" |
11 #include "chromeos/settings/cros_settings_provider.h" | 12 #include "chromeos/settings/cros_settings_provider.h" |
12 | 13 |
13 namespace chromeos { | 14 namespace chromeos { |
14 | 15 |
15 // CrosSettingsProvider implementation that stores settings in memory unsigned. | 16 // CrosSettingsProvider implementation that stores settings in memory unsigned. |
16 class StubCrosSettingsProvider : public CrosSettingsProvider { | 17 class StubCrosSettingsProvider : public CrosSettingsProvider { |
17 public: | 18 public: |
18 explicit StubCrosSettingsProvider(const NotifyObserversCallback& notify_cb); | 19 explicit StubCrosSettingsProvider(const NotifyObserversCallback& notify_cb); |
19 StubCrosSettingsProvider(); | 20 StubCrosSettingsProvider(); |
(...skipping 24 matching lines...) Expand all Loading... |
44 bool current_user_is_owner_ = true; | 45 bool current_user_is_owner_ = true; |
45 | 46 |
46 TrustedStatus trusted_status_ = CrosSettingsProvider::TRUSTED; | 47 TrustedStatus trusted_status_ = CrosSettingsProvider::TRUSTED; |
47 | 48 |
48 DISALLOW_COPY_AND_ASSIGN(StubCrosSettingsProvider); | 49 DISALLOW_COPY_AND_ASSIGN(StubCrosSettingsProvider); |
49 }; | 50 }; |
50 | 51 |
51 } // namespace chromeos | 52 } // namespace chromeos |
52 | 53 |
53 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_STUB_CROS_SETTINGS_PROVIDER_H_ | 54 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_STUB_CROS_SETTINGS_PROVIDER_H_ |
OLD | NEW |