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

Unified Diff: chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc

Issue 2820063005: Remove the "not_after" validation of policy timestamps (Closed)
Patch Set: Rebase Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
index 23e9cf982ca6e83c6f415eeca70d9b51726f0105..89f67ba22058161f8ce6730d664efda05ce7b6d6 100644
--- a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
+++ b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
@@ -199,9 +199,8 @@ void EnrollmentHandlerChromeOS::OnPolicyFetched(CloudPolicyClient* client) {
base::MakeUnique<em::PolicyFetchResponse>(*policy),
background_task_runner_));
- validator->ValidateTimestamp(
- base::Time(), base::Time::NowFromSystemTime(),
- CloudPolicyValidatorBase::TIMESTAMP_FULLY_VALIDATED);
+ validator->ValidateTimestamp(base::Time(),
+ CloudPolicyValidatorBase::TIMESTAMP_VALIDATED);
// If this is re-enrollment, make sure that the new policy matches the
// previously-enrolled domain. (Currently only implemented for cloud

Powered by Google App Engine
This is Rietveld 408576698