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

Unified Diff: chrome/browser/policy/network_configuration_updater.h

Issue 10868076: Only import certificates with Web trust from ONC if the user is managed and matches the enterprise … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed upload Created 8 years, 3 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/policy/network_configuration_updater.h
diff --git a/chrome/browser/policy/network_configuration_updater.h b/chrome/browser/policy/network_configuration_updater.h
index 325d10fcf7adff36a5344a343e69030a82c5af0f..d59accb151fbe27a707bcd3fbd0f7dbcb12b72f2 100644
--- a/chrome/browser/policy/network_configuration_updater.h
+++ b/chrome/browser/policy/network_configuration_updater.h
@@ -26,8 +26,12 @@ class PolicyMap;
// network definitions whenever the configuration changes.
class NetworkConfigurationUpdater {
public:
+ // Web trust isn't given to certificates imported from ONC by default.
+ // Setting |allow_web_trust| to true allows giving Web trust to the
+ // certificates that request it.
NetworkConfigurationUpdater(PolicyService* policy_service,
- chromeos::NetworkLibrary* network_library);
+ chromeos::NetworkLibrary* network_library,
+ bool allow_web_trust);
virtual ~NetworkConfigurationUpdater();
// Empty network configuration blob.
@@ -48,6 +52,9 @@ class NetworkConfigurationUpdater {
// Network library to write network configuration to.
chromeos::NetworkLibrary* network_library_;
+ // Whether Web trust is allowed or not.
+ bool allow_web_trust_;
+
// Current settings.
std::string device_network_config_;
std::string user_network_config_;

Powered by Google App Engine
This is Rietveld 408576698