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

Side by Side Diff: chromeos/network/onc/onc_merger.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_merger.h ('k') | chromeos/network/onc/onc_merger_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_merger.h" 5 #include "chromeos/network/onc/onc_merger.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/chromeos/cros/onc_constants.h" 13 #include "chromeos/network/onc/onc_constants.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 namespace onc { 16 namespace onc {
17 namespace { 17 namespace {
18 18
19 typedef scoped_ptr<base::DictionaryValue> DictionaryPtr; 19 typedef scoped_ptr<base::DictionaryValue> DictionaryPtr;
20 20
21 // Inserts |true| at every field name in |result| that is recommended in policy. 21 // Inserts |true| at every field name in |result| that is recommended in policy.
22 void MarkRecommendedFieldnames(const base::DictionaryValue& policy, 22 void MarkRecommendedFieldnames(const base::DictionaryValue& policy,
23 base::DictionaryValue* result) { 23 base::DictionaryValue* result) {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 MergeDictionaryIfNotNULL(reduced_shared_onc.get(), result.get()); 165 MergeDictionaryIfNotNULL(reduced_shared_onc.get(), result.get());
166 MergeDictionaryIfNotNULL(reduced_user_onc.get(), result.get()); 166 MergeDictionaryIfNotNULL(reduced_user_onc.get(), result.get());
167 MergeDictionaryIfNotNULL(device_mandatory.get(), result.get()); 167 MergeDictionaryIfNotNULL(device_mandatory.get(), result.get());
168 MergeDictionaryIfNotNULL(user_mandatory.get(), result.get()); 168 MergeDictionaryIfNotNULL(user_mandatory.get(), result.get());
169 169
170 return result.Pass(); 170 return result.Pass();
171 } 171 }
172 172
173 } // namespace onc 173 } // namespace onc
174 } // namespace chromeos 174 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_merger.h ('k') | chromeos/network/onc/onc_merger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698