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

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: Addressed comments. 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..ab3452cc0c78d20c1489ba00fea405c9e100671d 100644
--- a/chromeos/network/onc/onc_validator.h
+++ b/chromeos/network/onc/onc_validator.h
@@ -215,7 +215,13 @@ class CHROMEOS_EXPORT Validator : public Mapper {
bool RequireField(const base::DictionaryValue& dict, const std::string& key);
- bool CertPatternInDevicePolicy(const std::string& cert_type);
+ // Prohibit certificate patterns for device policy ONC so that an unmanaged
+ // user won't have a certificate presented for them involuntarily.
+ bool IsCertPatternInDevicePolicy(const std::string& cert_type);
+
+ // Prohibit global network configuration in user ONC imports.
+ bool IsGlobalNetworkConfigInUserImport(
+ const base::DictionaryValue& onc_object);
std::string MessageHeader();

Powered by Google App Engine
This is Rietveld 408576698