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

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

Issue 2820063005: Remove the "not_after" validation of policy timestamps (Closed)
Patch Set: Fix test 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 a626d90f3ec0ebb88359eb865a528eb40c26f047..6a964fdc039ebded99c08323dbf33f2ba8123f86 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) {
new em::PolicyFetchResponse(*policy)),
background_task_runner_));
- validator->ValidateTimestamp(
- base::Time(), base::Time::NowFromSystemTime(),
- CloudPolicyValidatorBase::TIMESTAMP_FULLY_VALIDATED);
+ validator->ValidateTimestamp(base::Time(),
+ CloudPolicyValidatorBase::TIMESTAMP_VALIDATED);
Thiemo Nagel 2017/04/19 11:43:09 Nit: IIUC it would be clearer to set TIMESTAMP_NOT
emaxx 2017/04/19 20:48:45 Current code still validates something: it checks
// 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