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

Unified Diff: components/policy/core/browser/cloud/message_util.cc

Issue 2150603002: Added policy device id validation similar to the existing DM token validation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added policy device id validation similar to the existing DM token validation. BUG: 360708 Created 4 years, 5 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: components/policy/core/browser/cloud/message_util.cc
diff --git a/components/policy/core/browser/cloud/message_util.cc b/components/policy/core/browser/cloud/message_util.cc
index 0b203df5a8e2afa80d20361a76f31741adcab572..80673e3889b1590d2471eb4056e6d43f3554a2ab 100644
--- a/components/policy/core/browser/cloud/message_util.cc
+++ b/components/policy/core/browser/cloud/message_util.cc
@@ -71,6 +71,8 @@ int GetIDSForValidationStatus(CloudPolicyValidatorBase::Status status) {
return IDS_POLICY_VALIDATION_BAD_TIMESTAMP;
case CloudPolicyValidatorBase::VALIDATION_WRONG_TOKEN:
return IDS_POLICY_VALIDATION_WRONG_TOKEN;
+ case CloudPolicyValidatorBase::VALIDATION_WRONG_DEVICE_ID:
+ return IDS_POLICY_VALIDATION_WRONG_DEVICE_ID;
case CloudPolicyValidatorBase::VALIDATION_BAD_USERNAME:
return IDS_POLICY_VALIDATION_BAD_USERNAME;
case CloudPolicyValidatorBase::VALIDATION_POLICY_PARSE_ERROR:

Powered by Google App Engine
This is Rietveld 408576698