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

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

Issue 285233008: Add MacAddress to ONC and networkingPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Rebase Created 6 years, 7 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
« no previous file with comments | « chromeos/network/network_util.cc ('k') | chromeos/network/onc/onc_translation_tables.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 "chromeos/network/onc/onc_signature.h" 5 #include "chromeos/network/onc/onc_signature.h"
6 6
7 #include "components/onc/onc_constants.h" 7 #include "components/onc/onc_constants.h"
8 #include "third_party/cros_system_api/dbus/service_constants.h" 8 #include "third_party/cros_system_api/dbus/service_constants.h"
9 9
10 using base::Value; 10 using base::Value;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 { ::onc::network_config::kVPN, &kVPNSignature}, 275 { ::onc::network_config::kVPN, &kVPNSignature},
276 { ::onc::network_config::kWiFi, &kWiFiSignature}, 276 { ::onc::network_config::kWiFi, &kWiFiSignature},
277 { ::onc::network_config::kCellular, &kCellularSignature}, 277 { ::onc::network_config::kCellular, &kCellularSignature},
278 {NULL}}; 278 {NULL}};
279 279
280 const OncFieldSignature network_with_state_fields[] = { 280 const OncFieldSignature network_with_state_fields[] = {
281 { ::onc::network_config::kCellular, &kCellularWithStateSignature}, 281 { ::onc::network_config::kCellular, &kCellularWithStateSignature},
282 { ::onc::network_config::kConnectionState, &kStringSignature}, 282 { ::onc::network_config::kConnectionState, &kStringSignature},
283 { ::onc::network_config::kConnectable, &kBoolSignature}, 283 { ::onc::network_config::kConnectable, &kBoolSignature},
284 { ::onc::network_config::kErrorState, &kStringSignature}, 284 { ::onc::network_config::kErrorState, &kStringSignature},
285 { ::onc::network_config::kMacAddress, &kStringSignature},
285 { ::onc::network_config::kWiFi, &kWiFiWithStateSignature}, 286 { ::onc::network_config::kWiFi, &kWiFiWithStateSignature},
286 {NULL}}; 287 {NULL}};
287 288
288 const OncFieldSignature global_network_configuration_fields[] = { 289 const OncFieldSignature global_network_configuration_fields[] = {
289 { ::onc::global_network_config::kAllowOnlyPolicyNetworksToAutoconnect, 290 { ::onc::global_network_config::kAllowOnlyPolicyNetworksToAutoconnect,
290 &kBoolSignature}, 291 &kBoolSignature},
291 {NULL}}; 292 {NULL}};
292 293
293 const OncFieldSignature certificate_fields[] = { 294 const OncFieldSignature certificate_fields[] = {
294 { ::onc::certificate::kGUID, &kStringSignature}, 295 { ::onc::certificate::kGUID, &kStringSignature},
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 if (&signature == entry->value_signature && 448 if (&signature == entry->value_signature &&
448 onc_field_name == entry->field_name) { 449 onc_field_name == entry->field_name) {
449 return true; 450 return true;
450 } 451 }
451 } 452 }
452 return false; 453 return false;
453 } 454 }
454 455
455 } // namespace onc 456 } // namespace onc
456 } // namespace chromeos 457 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/network_util.cc ('k') | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698