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

Side by Side Diff: chromeos/network/onc/onc_normalizer.cc

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit tests Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/network/onc/onc_normalizer.h ('k') | chromeos/network/onc/onc_normalizer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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/onc_constants.h"
12 #include "chrome/browser/chromeos/network_settings/onc_signature.h" 12 #include "chromeos/network/onc/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
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
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_normalizer.h ('k') | chromeos/network/onc/onc_normalizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698