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

Side by Side Diff: chrome/browser/chromeos/policy/device_local_account_policy_provider.h

Issue 92153002: Move ConfigurationPolicyProvider, etc. to components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/chromeos/policy/device_local_account_external_data_mana ger.h" 14 #include "chrome/browser/chromeos/policy/device_local_account_external_data_mana ger.h"
15 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" 15 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h"
16 #include "chrome/browser/policy/configuration_policy_provider.h" 16 #include "components/policy/core/common/configuration_policy_provider.h"
17 17
18 namespace policy { 18 namespace policy {
19 19
20 // Policy provider for a device-local account. Pulls policy from 20 // Policy provider for a device-local account. Pulls policy from
21 // DeviceLocalAccountPolicyService. Note that this implementation keeps 21 // DeviceLocalAccountPolicyService. Note that this implementation keeps
22 // functioning when the device-local account disappears from 22 // functioning when the device-local account disappears from
23 // DeviceLocalAccountPolicyService. The current policy will be kept in that case 23 // DeviceLocalAccountPolicyService. The current policy will be kept in that case
24 // and RefreshPolicies becomes a no-op. 24 // and RefreshPolicies becomes a no-op.
25 class DeviceLocalAccountPolicyProvider 25 class DeviceLocalAccountPolicyProvider
26 : public ConfigurationPolicyProvider, 26 : public ConfigurationPolicyProvider,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 bool waiting_for_policy_refresh_; 59 bool waiting_for_policy_refresh_;
60 60
61 base::WeakPtrFactory<DeviceLocalAccountPolicyProvider> weak_factory_; 61 base::WeakPtrFactory<DeviceLocalAccountPolicyProvider> weak_factory_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyProvider); 63 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyProvider);
64 }; 64 };
65 65
66 } // namespace policy 66 } // namespace policy
67 67
68 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_PROVIDER_H _ 68 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_LOCAL_ACCOUNT_POLICY_PROVIDER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698