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

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

Issue 535283002: Translate activation/romaing state, restricted pool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_279351_internet_options_7b
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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 { ::onc::network_config::kVPN, &kVPNSignature}, 312 { ::onc::network_config::kVPN, &kVPNSignature},
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::kRestricted, &kBoolSignature},
322 { ::onc::network_config::kWiFi, &kWiFiWithStateSignature}, 323 { ::onc::network_config::kWiFi, &kWiFiWithStateSignature},
323 {NULL}}; 324 {NULL}};
324 325
325 const OncFieldSignature global_network_configuration_fields[] = { 326 const OncFieldSignature global_network_configuration_fields[] = {
326 { ::onc::global_network_config::kAllowOnlyPolicyNetworksToAutoconnect, 327 { ::onc::global_network_config::kAllowOnlyPolicyNetworksToAutoconnect,
327 &kBoolSignature}, 328 &kBoolSignature},
328 {NULL}}; 329 {NULL}};
329 330
330 const OncFieldSignature certificate_fields[] = { 331 const OncFieldSignature certificate_fields[] = {
331 { ::onc::certificate::kGUID, &kStringSignature}, 332 { ::onc::certificate::kGUID, &kStringSignature},
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 if (&signature == entry->value_signature && 497 if (&signature == entry->value_signature &&
497 onc_field_name == entry->field_name) { 498 onc_field_name == entry->field_name) {
498 return true; 499 return true;
499 } 500 }
500 } 501 }
501 return false; 502 return false;
502 } 503 }
503 504
504 } // namespace onc 505 } // namespace onc
505 } // namespace chromeos 506 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698