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/onc/onc_utils.h" | 5 #include "chromeos/network/onc/onc_utils.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 if (type == ::onc::network_type::kAllTypes) | 655 if (type == ::onc::network_type::kAllTypes) |
656 return NetworkTypePattern::Default(); | 656 return NetworkTypePattern::Default(); |
657 if (type == ::onc::network_type::kCellular) | 657 if (type == ::onc::network_type::kCellular) |
658 return NetworkTypePattern::Cellular(); | 658 return NetworkTypePattern::Cellular(); |
659 if (type == ::onc::network_type::kEthernet) | 659 if (type == ::onc::network_type::kEthernet) |
660 return NetworkTypePattern::Ethernet(); | 660 return NetworkTypePattern::Ethernet(); |
661 if (type == ::onc::network_type::kVPN) | 661 if (type == ::onc::network_type::kVPN) |
662 return NetworkTypePattern::VPN(); | 662 return NetworkTypePattern::VPN(); |
663 if (type == ::onc::network_type::kWiFi) | 663 if (type == ::onc::network_type::kWiFi) |
664 return NetworkTypePattern::WiFi(); | 664 return NetworkTypePattern::WiFi(); |
| 665 if (type == ::onc::network_type::kWimax) |
| 666 return NetworkTypePattern::Wimax(); |
| 667 if (type == ::onc::network_type::kWireless) |
| 668 return NetworkTypePattern::Wireless(); |
665 NOTREACHED(); | 669 NOTREACHED(); |
666 return NetworkTypePattern::Default(); | 670 return NetworkTypePattern::Default(); |
667 } | 671 } |
668 | 672 |
669 } // namespace onc | 673 } // namespace onc |
670 } // namespace chromeos | 674 } // namespace chromeos |
OLD | NEW |