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

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

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix double registration in Chrome Frame test. Created 7 years, 10 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 | Annotate | Revision Log
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_CACHE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_CACHE_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_CACHE_H_ 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_CACHE_H_
7 7
8 namespace enterprise_management { 8 namespace enterprise_management {
9 class PolicyData; 9 class PolicyData;
10 } 10 }
11 11
12 class PrefService; 12 class PrefService;
13 class PrefServiceSimple; 13 class PrefRegistrySimple;
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 // There is need (metrics at OOBE stage) to store settings (that normally would 17 // There is need (metrics at OOBE stage) to store settings (that normally would
18 // go into DeviceSettings storage) before owner has been assigned (hence no key 18 // go into DeviceSettings storage) before owner has been assigned (hence no key
19 // is available). This set of functions serves as a transient storage in that 19 // is available). This set of functions serves as a transient storage in that
20 // case. 20 // case.
21 namespace device_settings_cache { 21 namespace device_settings_cache {
22 // Registers required pref section. 22 // Registers required pref section.
23 void RegisterPrefs(PrefServiceSimple* local_state); 23 void RegisterPrefs(PrefRegistrySimple* registry);
24 24
25 // Stores a new policy blob inside the cache stored in |local_state|. 25 // Stores a new policy blob inside the cache stored in |local_state|.
26 bool Store(const enterprise_management::PolicyData &policy, 26 bool Store(const enterprise_management::PolicyData &policy,
27 PrefService* local_state); 27 PrefService* local_state);
28 28
29 // Retrieves the policy blob from the cache stored in |local_state|. 29 // Retrieves the policy blob from the cache stored in |local_state|.
30 bool Retrieve(enterprise_management::PolicyData *policy, 30 bool Retrieve(enterprise_management::PolicyData *policy,
31 PrefService* local_state); 31 PrefService* local_state);
32 32
33 // Call this after owner has been assigned to persist settings into 33 // Call this after owner has been assigned to persist settings into
34 // DeviceSettings storage. 34 // DeviceSettings storage.
35 void Finalize(PrefService* local_state); 35 void Finalize(PrefService* local_state);
36 } // namespace device_settings_cache 36 } // namespace device_settings_cache
37 37
38 } // namespace chromeos 38 } // namespace chromeos
39 39
40 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_CACHE_H_ 40 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698