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

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

Issue 552113002: Add ONC 'Source' configuration property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_279351_internet_options_9a
Patch Set: Rebase Created 6 years, 3 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
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 { ::onc::network_config::kWiFi, &kWiFiSignature}, 313 { ::onc::network_config::kWiFi, &kWiFiSignature},
314 {NULL}}; 314 {NULL}};
315 315
316 const OncFieldSignature network_with_state_fields[] = { 316 const OncFieldSignature network_with_state_fields[] = {
317 { ::onc::network_config::kCellular, &kCellularWithStateSignature}, 317 { ::onc::network_config::kCellular, &kCellularWithStateSignature},
318 { ::onc::network_config::kConnectionState, &kStringSignature}, 318 { ::onc::network_config::kConnectionState, &kStringSignature},
319 { ::onc::network_config::kConnectable, &kBoolSignature}, 319 { ::onc::network_config::kConnectable, &kBoolSignature},
320 { ::onc::network_config::kErrorState, &kStringSignature}, 320 { ::onc::network_config::kErrorState, &kStringSignature},
321 { ::onc::network_config::kMacAddress, &kStringSignature}, 321 { ::onc::network_config::kMacAddress, &kStringSignature},
322 { ::onc::network_config::kRestrictedConnectivity, &kBoolSignature}, 322 { ::onc::network_config::kRestrictedConnectivity, &kBoolSignature},
323 { ::onc::network_config::kSource, &kStringSignature},
323 { ::onc::network_config::kWiFi, &kWiFiWithStateSignature}, 324 { ::onc::network_config::kWiFi, &kWiFiWithStateSignature},
324 {NULL}}; 325 {NULL}};
325 326
326 const OncFieldSignature global_network_configuration_fields[] = { 327 const OncFieldSignature global_network_configuration_fields[] = {
327 { ::onc::global_network_config::kAllowOnlyPolicyNetworksToAutoconnect, 328 { ::onc::global_network_config::kAllowOnlyPolicyNetworksToAutoconnect,
328 &kBoolSignature}, 329 &kBoolSignature},
329 {NULL}}; 330 {NULL}};
330 331
331 const OncFieldSignature certificate_fields[] = { 332 const OncFieldSignature certificate_fields[] = {
332 { ::onc::certificate::kGUID, &kStringSignature}, 333 { ::onc::certificate::kGUID, &kStringSignature},
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 if (&signature == entry->value_signature && 498 if (&signature == entry->value_signature &&
498 onc_field_name == entry->field_name) { 499 onc_field_name == entry->field_name) {
499 return true; 500 return true;
500 } 501 }
501 } 502 }
502 return false; 503 return false;
503 } 504 }
504 505
505 } // namespace onc 506 } // namespace onc
506 } // namespace chromeos 507 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698