Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: chrome/browser/chromeos/settings/device_settings_provider.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_DEVICE_SETTINGS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 27 matching lines...) Expand all
38 typedef base::Callback<policy::DeviceMode(void)> GetDeviceModeCallback; 38 typedef base::Callback<policy::DeviceMode(void)> GetDeviceModeCallback;
39 39
40 DeviceSettingsProvider(const NotifyObserversCallback& notify_cb, 40 DeviceSettingsProvider(const NotifyObserversCallback& notify_cb,
41 DeviceSettingsService* device_settings_service); 41 DeviceSettingsService* device_settings_service);
42 virtual ~DeviceSettingsProvider(); 42 virtual ~DeviceSettingsProvider();
43 43
44 // Returns true if |path| is handled by this provider. 44 // Returns true if |path| is handled by this provider.
45 static bool IsDeviceSetting(const std::string& name); 45 static bool IsDeviceSetting(const std::string& name);
46 46
47 // CrosSettingsProvider implementation. 47 // CrosSettingsProvider implementation.
48 virtual const base::Value* Get(const std::string& path) const OVERRIDE; 48 virtual const base::Value* Get(const std::string& path) const override;
49 virtual TrustedStatus PrepareTrustedValues( 49 virtual TrustedStatus PrepareTrustedValues(
50 const base::Closure& callback) OVERRIDE; 50 const base::Closure& callback) override;
51 virtual bool HandlesSetting(const std::string& path) const OVERRIDE; 51 virtual bool HandlesSetting(const std::string& path) const override;
52 52
53 private: 53 private:
54 // CrosSettingsProvider implementation: 54 // CrosSettingsProvider implementation:
55 virtual void DoSet(const std::string& path, 55 virtual void DoSet(const std::string& path,
56 const base::Value& value) OVERRIDE; 56 const base::Value& value) override;
57 57
58 // DeviceSettingsService::Observer implementation: 58 // DeviceSettingsService::Observer implementation:
59 virtual void OwnershipStatusChanged() OVERRIDE; 59 virtual void OwnershipStatusChanged() override;
60 virtual void DeviceSettingsUpdated() OVERRIDE; 60 virtual void DeviceSettingsUpdated() override;
61 61
62 // Populates in-memory cache from the local_state cache that is used to store 62 // Populates in-memory cache from the local_state cache that is used to store
63 // device settings before the device is owned and to speed up policy 63 // device settings before the device is owned and to speed up policy
64 // availability before the policy blob is fetched on boot. 64 // availability before the policy blob is fetched on boot.
65 void RetrieveCachedData(); 65 void RetrieveCachedData();
66 66
67 // Stores a value from the |pending_changes_| queue in the device settings. 67 // Stores a value from the |pending_changes_| queue in the device settings.
68 // If the device is not owned yet the data ends up only in the local_state 68 // If the device is not owned yet the data ends up only in the local_state
69 // cache and is serialized once ownership is acquired. 69 // cache and is serialized once ownership is acquired.
70 void SetInPolicy(); 70 void SetInPolicy();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 InitializationTestUnowned); 149 InitializationTestUnowned);
150 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, 150 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest,
151 PolicyFailedPermanentlyNotification); 151 PolicyFailedPermanentlyNotification);
152 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, PolicyLoadNotification); 152 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, PolicyLoadNotification);
153 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider); 153 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider);
154 }; 154 };
155 155
156 } // namespace chromeos 156 } // namespace chromeos
157 157
158 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_ 158 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698