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

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

Issue 23526016: Autoconnect policy for CrOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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: chromeos/network/onc/onc_validator.h
diff --git a/chromeos/network/onc/onc_validator.h b/chromeos/network/onc/onc_validator.h
index ef192607723be66966ae5a58fdac286d4ab78498..776534f50cdd580dd49c1a45273b22cc8a237dfe 100644
--- a/chromeos/network/onc/onc_validator.h
+++ b/chromeos/network/onc/onc_validator.h
@@ -215,8 +215,13 @@ class CHROMEOS_EXPORT Validator : public Mapper {
bool RequireField(const base::DictionaryValue& dict, const std::string& key);
+ // Prohibit certificate patterns for device policy ONC so that an unmanaged
+ // user won't have a certificate presented for them involuntarily.
bool CertPatternInDevicePolicy(const std::string& cert_type);
+ // Prohibit global network configuration in user ONC imports.
+ bool GlobalNetworkConfigInUserImport(const base::DictionaryValue& onc_object);
bartfab (slow) 2013/10/16 12:40:31 Nit: Could these methods that return a bool be pre
pneubeck (no reviews) 2013/10/17 10:22:26 Done.
+
std::string MessageHeader();
const bool error_on_unknown_field_;

Powered by Google App Engine
This is Rietveld 408576698