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

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

Issue 1071713004: Enable NPAPI if policy has plugin policies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win and mac only Created 5 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_POLICY_PROFILE_POLICY_CONNECTOR_H_ 5 #ifndef CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_
6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ 6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Returns the cloud policy management domain, if this Profile is under 51 // Returns the cloud policy management domain, if this Profile is under
52 // cloud policy management. Otherwise returns an empty string. 52 // cloud policy management. Otherwise returns an empty string.
53 std::string GetManagementDomain() const; 53 std::string GetManagementDomain() const;
54 54
55 // Returns true if the |name| Chrome policy is currently set via the 55 // Returns true if the |name| Chrome policy is currently set via the
56 // CloudPolicyManager and isn't being overridden by a higher-level provider. 56 // CloudPolicyManager and isn't being overridden by a higher-level provider.
57 bool IsPolicyFromCloudPolicy(const char* name) const; 57 bool IsPolicyFromCloudPolicy(const char* name) const;
58 58
59 private: 59 private:
60 #if defined(ENABLE_CONFIGURATION_POLICY) 60 #if defined(ENABLE_CONFIGURATION_POLICY)
61 #if defined(OS_WIN) || defined(OS_MACOSX)
62 void EnableNPAPIIfRequired();
63 #endif
61 #if defined(OS_CHROMEOS) 64 #if defined(OS_CHROMEOS)
62 // Some of the user policy configuration affects browser global state, and 65 // Some of the user policy configuration affects browser global state, and
63 // can only come from one Profile. |is_primary_user_| is true if this 66 // can only come from one Profile. |is_primary_user_| is true if this
64 // connector belongs to the first signed-in Profile, and in that case that 67 // connector belongs to the first signed-in Profile, and in that case that
65 // Profile's policy is the one that affects global policy settings in 68 // Profile's policy is the one that affects global policy settings in
66 // local state. 69 // local state.
67 bool is_primary_user_; 70 bool is_primary_user_;
68 71
69 scoped_ptr<ConfigurationPolicyProvider> special_user_policy_provider_; 72 scoped_ptr<ConfigurationPolicyProvider> special_user_policy_provider_;
70 #endif // defined(OS_CHROMEOS) 73 #endif // defined(OS_CHROMEOS)
71 74
72 scoped_ptr<ConfigurationPolicyProvider> wrapped_platform_policy_provider_; 75 scoped_ptr<ConfigurationPolicyProvider> wrapped_platform_policy_provider_;
73 CloudPolicyManager* user_cloud_policy_manager_; 76 CloudPolicyManager* user_cloud_policy_manager_;
74 #endif // defined(ENABLE_CONFIGURATION_POLICY) 77 #endif // defined(ENABLE_CONFIGURATION_POLICY)
75 78
76 scoped_ptr<PolicyService> policy_service_; 79 scoped_ptr<PolicyService> policy_service_;
77 80
78 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnector); 81 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnector);
79 }; 82 };
80 83
81 } // namespace policy 84 } // namespace policy
82 85
83 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ 86 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/profile_policy_connector.cc » ('j') | chrome/browser/policy/profile_policy_connector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698