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

Unified Diff: chromeos/network/onc/onc_validator.h

Issue 11970012: Add a check for server and CA certificates in device policies to the ONC validator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing unit tests. Created 7 years, 11 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 | « chromeos/network/onc/onc_certificate_importer_unittest.cc ('k') | chromeos/network/onc/onc_validator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/onc/onc_validator.h
diff --git a/chromeos/network/onc/onc_validator.h b/chromeos/network/onc/onc_validator.h
index f928f3d823f517f556f0c299b3b6bf4a3a79b3d5..1de930b32b2cd3b06c1171e6f94d2f918e4b8cf2 100644
--- a/chromeos/network/onc/onc_validator.h
+++ b/chromeos/network/onc/onc_validator.h
@@ -210,6 +210,9 @@ class CHROMEOS_EXPORT Validator : public Mapper {
int lower_bound,
int upper_bound);
+ bool FieldExistsAndIsEmpty(const base::DictionaryValue& object,
+ const std::string& field_name);
+
bool RequireField(const base::DictionaryValue& dict, const std::string& key);
bool CertPatternInDevicePolicy(const std::string& cert_type);
« no previous file with comments | « chromeos/network/onc/onc_certificate_importer_unittest.cc ('k') | chromeos/network/onc/onc_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698