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

Unified Diff: chrome/browser/policy/browser_policy_connector.h

Issue 13035003: Added a PolicyCertVerifier that uses the trust anchors from the ONC policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed non-chromeos builds Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/browser_policy_connector.h
diff --git a/chrome/browser/policy/browser_policy_connector.h b/chrome/browser/policy/browser_policy_connector.h
index 3774422070b650bda0f98c99f2e8629db0d1fc47..2169179cb32eb3a71da4e13a00e915dd0193b005 100644
--- a/chrome/browser/policy/browser_policy_connector.h
+++ b/chrome/browser/policy/browser_policy_connector.h
@@ -19,6 +19,7 @@
#endif
class PrefRegistrySimple;
+class PrefRegistrySyncable;
class PrefService;
class Profile;
@@ -156,9 +157,17 @@ class BrowserPolicyConnector {
// false if the username is empty.
static bool IsNonEnterpriseUser(const std::string& username);
+ // Returns true if |profile| has used certificates installed via policy
+ // to establish a secure connection before. This means that it may have
+ // cached content from an untrusted source.
+ static bool UsedPolicyCertificates(Profile* profile);
+
// Registers refresh rate prefs.
static void RegisterPrefs(PrefRegistrySimple* registry);
+ // Registers Profile prefs related to policy features.
+ static void RegisterUserPrefs(PrefRegistrySyncable* registry);
+
private:
// Set the timezone as soon as the policies are available.
void SetTimezoneIfPolicyAvailable();

Powered by Google App Engine
This is Rietveld 408576698