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

Unified Diff: chrome/browser/chromeos/policy/policy_cert_service_factory.h

Issue 117263002: Prevent ONC-pushed certificates from being used with multiprofiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Philipps suggestion, another test 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/policy_cert_service_factory.h
diff --git a/chrome/browser/chromeos/policy/policy_cert_service_factory.h b/chrome/browser/chromeos/policy/policy_cert_service_factory.h
index dc945aa606669c0ea5a40b9530abf69d1e0c24a0..eaa269b92150a22ca3790f299e990e68bf8c1065 100644
--- a/chrome/browser/chromeos/policy/policy_cert_service_factory.h
+++ b/chrome/browser/chromeos/policy/policy_cert_service_factory.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_SERVICE_FACTORY_H_
#define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_SERVICE_FACTORY_H_
+#include <string>
+
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
@@ -12,6 +14,7 @@
template <typename T> struct DefaultSingletonTraits;
+class PrefRegistrySimple;
class Profile;
namespace policy {
@@ -37,6 +40,14 @@ class PolicyCertServiceFactory : public BrowserContextKeyedServiceFactory {
static PolicyCertServiceFactory* GetInstance();
+ // Used to mark or clear |user_id| as having used certificates pushed by
+ // policy before.
+ static void SetUsedPolicyCertificates(const std::string& user_id);
+ static void ClearUsedPolicyCertificates(const std::string& user_id);
+ static bool UsedPolicyCertificates(const std::string& user_id);
+
+ static void RegisterPrefs(PrefRegistrySimple* local_state);
+
private:
friend struct DefaultSingletonTraits<PolicyCertServiceFactory>;

Powered by Google App Engine
This is Rietveld 408576698