| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/network_settings/onc_normalizer.h" | 5 #include "chromeos/network/onc_normalizer.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/chromeos/cros/onc_constants.h" | 11 #include "chromeos/network/onc_constants.h" |
| 12 #include "chrome/browser/chromeos/network_settings/onc_signature.h" | 12 #include "chromeos/network/onc_signature.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 namespace onc { | 15 namespace onc { |
| 16 | 16 |
| 17 Normalizer::Normalizer(bool remove_recommended_fields) | 17 Normalizer::Normalizer(bool remove_recommended_fields) |
| 18 : remove_recommended_fields_(remove_recommended_fields) { | 18 : remove_recommended_fields_(remove_recommended_fields) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 Normalizer::~Normalizer() { | 21 Normalizer::~Normalizer() { |
| 22 } | 22 } |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void Normalizer::NormalizeNetworkConfiguration(base::DictionaryValue* network) { | 95 void Normalizer::NormalizeNetworkConfiguration(base::DictionaryValue* network) { |
| 96 std::string type; | 96 std::string type; |
| 97 network->GetStringWithoutPathExpansion(kType, &type); | 97 network->GetStringWithoutPathExpansion(kType, &type); |
| 98 RemoveEntryUnless(network, kEthernet, type == kEthernet); | 98 RemoveEntryUnless(network, kEthernet, type == kEthernet); |
| 99 RemoveEntryUnless(network, kVPN, type == kVPN); | 99 RemoveEntryUnless(network, kVPN, type == kVPN); |
| 100 RemoveEntryUnless(network, kWiFi, type == kWiFi); | 100 RemoveEntryUnless(network, kWiFi, type == kWiFi); |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace onc | 103 } // namespace onc |
| 104 } // namespace chromeos | 104 } // namespace chromeos |
| OLD | NEW |