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

Side by Side Diff: chrome/browser/policy/managed_mode_policy_provider.h

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix gypi problem Created 8 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 | 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_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/prefs/persistent_pref_store.h"
9 #include "chrome/browser/policy/configuration_policy_provider.h" 10 #include "chrome/browser/policy/configuration_policy_provider.h"
10 #include "chrome/common/persistent_pref_store.h"
11 11
12 class Profile; 12 class Profile;
13 13
14 namespace policy { 14 namespace policy {
15 15
16 // This class sets policies that are defined by a local user via "Managed Mode". 16 // This class sets policies that are defined by a local user via "Managed Mode".
17 // It offers methods to set and read policies, and persists them on disk in 17 // It offers methods to set and read policies, and persists them on disk in
18 // JSON format. 18 // JSON format.
19 class ManagedModePolicyProvider 19 class ManagedModePolicyProvider
20 : public ConfigurationPolicyProvider, 20 : public ConfigurationPolicyProvider,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void UpdatePolicyFromCache(); 52 void UpdatePolicyFromCache();
53 53
54 // Used for persisting policies. Unlike other PrefStores, this one is not 54 // Used for persisting policies. Unlike other PrefStores, this one is not
55 // hooked up to the PrefService. 55 // hooked up to the PrefService.
56 scoped_refptr<PersistentPrefStore> store_; 56 scoped_refptr<PersistentPrefStore> store_;
57 }; 57 };
58 58
59 } // namespace policy 59 } // namespace policy
60 60
61 #endif // CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_ 61 #endif // CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698