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 "chromeos/network/network_ui_data.h" | 5 #include "chromeos/network/network_ui_data.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "components/onc/onc_constants.h" | |
10 | 9 |
11 namespace chromeos { | 10 namespace chromeos { |
12 | 11 |
13 // Top-level UI data dictionary keys. | 12 // Top-level UI data dictionary keys. |
14 const char NetworkUIData::kKeyONCSource[] = "onc_source"; | 13 const char NetworkUIData::kKeyONCSource[] = "onc_source"; |
15 const char NetworkUIData::kKeyUserSettings[] = "user_settings"; | 14 const char NetworkUIData::kKeyUserSettings[] = "user_settings"; |
16 const char NetworkUIData::kONCSourceUserImport[] = "user_import"; | 15 const char NetworkUIData::kONCSourceUserImport[] = "user_import"; |
17 const char NetworkUIData::kONCSourceDevicePolicy[] = "device_policy"; | 16 const char NetworkUIData::kONCSourceDevicePolicy[] = "device_policy"; |
18 const char NetworkUIData::kONCSourceUserPolicy[] = "user_policy"; | 17 const char NetworkUIData::kONCSourceUserPolicy[] = "user_policy"; |
19 | 18 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 scoped_ptr<NetworkUIData> NetworkUIData::CreateFromONC( | 111 scoped_ptr<NetworkUIData> NetworkUIData::CreateFromONC( |
113 ::onc::ONCSource onc_source) { | 112 ::onc::ONCSource onc_source) { |
114 scoped_ptr<NetworkUIData> ui_data(new NetworkUIData()); | 113 scoped_ptr<NetworkUIData> ui_data(new NetworkUIData()); |
115 | 114 |
116 ui_data->onc_source_ = onc_source; | 115 ui_data->onc_source_ = onc_source; |
117 | 116 |
118 return ui_data.Pass(); | 117 return ui_data.Pass(); |
119 } | 118 } |
120 | 119 |
121 } // namespace chromeos | 120 } // namespace chromeos |
OLD | NEW |