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

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

Issue 482243002: Use Managed properties for Preferred and Provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 (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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 const OncFieldSignature network_configuration_fields[] = { 284 const OncFieldSignature network_configuration_fields[] = {
285 { ::onc::kRecommended, &kRecommendedSignature}, 285 { ::onc::kRecommended, &kRecommendedSignature},
286 { ::onc::network_config::kEthernet, &kEthernetSignature}, 286 { ::onc::network_config::kEthernet, &kEthernetSignature},
287 { ::onc::network_config::kGUID, &kStringSignature}, 287 { ::onc::network_config::kGUID, &kStringSignature},
288 // Not supported for policy but for reading network state. 288 // Not supported for policy but for reading network state.
289 { ::onc::network_config::kIPConfigs, &kIPConfigListSignature}, 289 { ::onc::network_config::kIPConfigs, &kIPConfigListSignature},
290 { ::onc::network_config::kName, &kStringSignature}, 290 { ::onc::network_config::kName, &kStringSignature},
291 // Not supported, yet. 291 // Not supported, yet.
292 { ::onc::network_config::kNameServers, &kStringListSignature}, 292 { ::onc::network_config::kNameServers, &kStringListSignature},
293 { ::onc::network_config::kPriority, &kIntegerSignature},
293 { ::onc::network_config::kProxySettings, &kProxySettingsSignature}, 294 { ::onc::network_config::kProxySettings, &kProxySettingsSignature},
294 { ::onc::kRemove, &kBoolSignature}, 295 { ::onc::kRemove, &kBoolSignature},
295 // Not supported, yet. 296 // Not supported, yet.
296 { ::onc::network_config::kSearchDomains, &kStringListSignature}, 297 { ::onc::network_config::kSearchDomains, &kStringListSignature},
297 { ::onc::network_config::kType, &kStringSignature}, 298 { ::onc::network_config::kType, &kStringSignature},
298 { ::onc::network_config::kVPN, &kVPNSignature}, 299 { ::onc::network_config::kVPN, &kVPNSignature},
299 { ::onc::network_config::kWiFi, &kWiFiSignature}, 300 { ::onc::network_config::kWiFi, &kWiFiSignature},
300 { ::onc::network_config::kCellular, &kCellularSignature}, 301 { ::onc::network_config::kCellular, &kCellularSignature},
301 {NULL}}; 302 {NULL}};
302 303
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 if (&signature == entry->value_signature && 478 if (&signature == entry->value_signature &&
478 onc_field_name == entry->field_name) { 479 onc_field_name == entry->field_name) {
479 return true; 480 return true;
480 } 481 }
481 } 482 }
482 return false; 483 return false;
483 } 484 }
484 485
485 } // namespace onc 486 } // namespace onc
486 } // namespace chromeos 487 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc ('k') | chromeos/network/onc/onc_translation_tables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698