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

Unified Diff: chrome/browser/policy/cloud/component_cloud_policy_service.cc

Issue 98433003: Fixed crash in CloudPolicyManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build 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/policy/cloud/component_cloud_policy_service.cc
diff --git a/chrome/browser/policy/cloud/component_cloud_policy_service.cc b/chrome/browser/policy/cloud/component_cloud_policy_service.cc
index 3cc210c88d26972c4e25881597685b7f46fab079..f19b3ff86301142c42034d8c39b6541ff9b87ee8 100644
--- a/chrome/browser/policy/cloud/component_cloud_policy_service.cc
+++ b/chrome/browser/policy/cloud/component_cloud_policy_service.cc
@@ -269,6 +269,15 @@ bool ComponentCloudPolicyService::SupportsDomain(PolicyDomain domain) {
return ComponentCloudPolicyStore::SupportsDomain(domain);
}
+void ComponentCloudPolicyService::ClearCache() {
+ DCHECK(CalledOnValidThread());
+ // Empty credentials will wipe the cache.
+ backend_task_runner_->PostTask(FROM_HERE,
+ base::Bind(&Backend::SetCredentials,
+ base::Unretained(backend_.get()),
+ std::string(), std::string()));
+}
+
void ComponentCloudPolicyService::OnSchemaRegistryReady() {
DCHECK(CalledOnValidThread());
InitializeIfReady();

Powered by Google App Engine
This is Rietveld 408576698