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

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

Issue 2945023002: Introduce profile for lock screen apps (Closed)
Patch Set: rebase Created 3 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_LOGIN_PROFILE_POLICY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_PROFILE_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_PROFILE_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_PROFILE_POLICY_PROVIDER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "components/policy/core/common/configuration_policy_provider.h" 11 #include "components/policy/core/common/configuration_policy_provider.h"
12 #include "components/policy/core/common/policy_service.h" 12 #include "components/policy/core/common/policy_service.h"
13 13
14 namespace policy { 14 namespace policy {
15 15
16 // Policy provider for the login profile. Since the login profile is not 16 // Policy provider for the login/lock screen app profile. Since these profiles
17 // associated with any user, it does not receive regular user policy. However, 17 // are not associated with any user, it does not receive regular user policy.
18 // several device policies that control features on the login screen surface as 18 // However, several device policies that control features on the login/lock
19 // user policies in the login profile. 19 // screen surface as user policies in the login and the lock screen app profile.
20 class LoginProfilePolicyProvider : public ConfigurationPolicyProvider, 20 class LoginProfilePolicyProvider : public ConfigurationPolicyProvider,
21 public PolicyService::Observer { 21 public PolicyService::Observer {
22 public: 22 public:
23 explicit LoginProfilePolicyProvider(PolicyService* device_policy_service); 23 explicit LoginProfilePolicyProvider(PolicyService* device_policy_service);
24 ~LoginProfilePolicyProvider() override; 24 ~LoginProfilePolicyProvider() override;
25 25
26 // ConfigurationPolicyProvider: 26 // ConfigurationPolicyProvider:
27 void Init(SchemaRegistry* registry) override; 27 void Init(SchemaRegistry* registry) override;
28 void Shutdown() override; 28 void Shutdown() override;
29 void RefreshPolicies() override; 29 void RefreshPolicies() override;
(...skipping 14 matching lines...) Expand all
44 bool waiting_for_device_policy_refresh_; 44 bool waiting_for_device_policy_refresh_;
45 45
46 base::WeakPtrFactory<LoginProfilePolicyProvider> weak_factory_; 46 base::WeakPtrFactory<LoginProfilePolicyProvider> weak_factory_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(LoginProfilePolicyProvider); 48 DISALLOW_COPY_AND_ASSIGN(LoginProfilePolicyProvider);
49 }; 49 };
50 50
51 } // namespace policy 51 } // namespace policy
52 52
53 #endif // CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_PROFILE_POLICY_PROVIDER_H_ 53 #endif // CHROME_BROWSER_CHROMEOS_POLICY_LOGIN_PROFILE_POLICY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698