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

Unified Diff: chromeos/network/onc/onc_normalizer.cc

Issue 750313003: ONC: Add IPConfigType. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipconfig_object
Patch Set: Change clearing of StaticIPConfig. Created 6 years 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 | « no previous file | chromeos/network/onc/onc_normalizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/onc/onc_normalizer.cc
diff --git a/chromeos/network/onc/onc_normalizer.cc b/chromeos/network/onc/onc_normalizer.cc
index f93882ffd9d4730e8a6c05886034fbc556455cd9..8983b942ee42023a49824e11f9be76697b960556 100644
--- a/chromeos/network/onc/onc_normalizer.cc
+++ b/chromeos/network/onc/onc_normalizer.cc
@@ -176,6 +176,13 @@ void Normalizer::NormalizeNetworkConfiguration(base::DictionaryValue* network) {
RemoveEntryUnless(network,
::onc::network_config::kWiFi,
type == ::onc::network_type::kWiFi);
+
+ std::string ipconfig_type;
+ network->GetStringWithoutPathExpansion(::onc::network_config::kIPConfigType,
+ &ipconfig_type);
+ RemoveEntryUnless(network,
+ ::onc::network_config::kStaticIPConfig,
+ type == ::onc::network_config::kIPConfigTypeStatic);
}
void Normalizer::NormalizeOpenVPN(base::DictionaryValue* openvpn) {
« no previous file with comments | « no previous file | chromeos/network/onc/onc_normalizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698