| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |