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

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

Issue 24041002: Turn off future-timestamp cloud policy checks on desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed enum name to TIMESTAMP_NOT_BEFORE Created 7 years, 3 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
« no previous file with comments | « chrome/browser/policy/cloud/user_cloud_policy_store_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud/user_cloud_policy_store_base.cc
diff --git a/chrome/browser/policy/cloud/user_cloud_policy_store_base.cc b/chrome/browser/policy/cloud/user_cloud_policy_store_base.cc
index b2c38fcd26411f1074631dbecf06bb39f4c100b3..2d097ba7e00d2ead5ed327c8d63da440818b513c 100644
--- a/chrome/browser/policy/cloud/user_cloud_policy_store_base.cc
+++ b/chrome/browser/policy/cloud/user_cloud_policy_store_base.cc
@@ -24,14 +24,15 @@ UserCloudPolicyStoreBase::~UserCloudPolicyStoreBase() {
}
scoped_ptr<UserCloudPolicyValidator> UserCloudPolicyStoreBase::CreateValidator(
- scoped_ptr<enterprise_management::PolicyFetchResponse> policy) {
+ scoped_ptr<enterprise_management::PolicyFetchResponse> policy,
+ CloudPolicyValidatorBase::ValidateTimestampOption timestamp_option) {
// Configure the validator.
UserCloudPolicyValidator* validator =
UserCloudPolicyValidator::Create(policy.Pass());
validator->ValidatePolicyType(GetChromeUserPolicyType());
validator->ValidateAgainstCurrentPolicy(
policy_.get(),
- CloudPolicyValidatorBase::TIMESTAMP_REQUIRED,
+ timestamp_option,
CloudPolicyValidatorBase::DM_TOKEN_REQUIRED);
validator->ValidatePayload();
return scoped_ptr<UserCloudPolicyValidator>(validator);
« no previous file with comments | « chrome/browser/policy/cloud/user_cloud_policy_store_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698