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

Side by Side Diff: chrome/browser/chromeos/options/network_property_ui_data.cc

Issue 427903004: Support Managed NetworkState format dictionaries for controlled settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/options/network_property_ui_data.h" 5 #include "chrome/browser/chromeos/options/network_property_ui_data.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 8
9 namespace chromeos { 9 namespace chromeos {
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 base::StringValue basename_value(property_basename); 42 base::StringValue basename_value(property_basename);
43 if (recommended_keys->Find(basename_value) != recommended_keys->end()) { 43 if (recommended_keys->Find(basename_value) != recommended_keys->end()) {
44 onc_source_ = onc::ONC_SOURCE_NONE; 44 onc_source_ = onc::ONC_SOURCE_NONE;
45 const base::Value* default_value = NULL; 45 const base::Value* default_value = NULL;
46 if (onc->Get(property_key, &default_value)) 46 if (onc->Get(property_key, &default_value))
47 default_value_.reset(default_value->DeepCopy()); 47 default_value_.reset(default_value->DeepCopy());
48 } 48 }
49 } 49 }
50 } 50 }
51 51
52 void NetworkPropertyUIData::SetOncSourceAndValue(::onc::ONCSource onc_source,
53 const base::Value* value) {
54 onc_source_ = onc_source;
55 default_value_.reset(value->DeepCopy());
56 }
57
52 } // namespace chromeos 58 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698