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/network_state_handler.h" | 5 #include "chromeos/network/network_state_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 if (type.MatchesType(shill::kTypeWimax)) | 992 if (type.MatchesType(shill::kTypeWimax)) |
993 technologies.push_back(new std::string(shill::kTypeWimax)); | 993 technologies.push_back(new std::string(shill::kTypeWimax)); |
994 if (type.MatchesType(shill::kTypeCellular)) | 994 if (type.MatchesType(shill::kTypeCellular)) |
995 technologies.push_back(new std::string(shill::kTypeCellular)); | 995 technologies.push_back(new std::string(shill::kTypeCellular)); |
996 if (type.MatchesType(shill::kTypeBluetooth)) | 996 if (type.MatchesType(shill::kTypeBluetooth)) |
997 technologies.push_back(new std::string(shill::kTypeBluetooth)); | 997 technologies.push_back(new std::string(shill::kTypeBluetooth)); |
998 if (type.MatchesType(shill::kTypeVPN)) | 998 if (type.MatchesType(shill::kTypeVPN)) |
999 technologies.push_back(new std::string(shill::kTypeVPN)); | 999 technologies.push_back(new std::string(shill::kTypeVPN)); |
1000 | 1000 |
1001 CHECK_GT(technologies.size(), 0ul); | 1001 CHECK_GT(technologies.size(), 0ul); |
1002 return technologies.Pass(); | 1002 return technologies; |
1003 } | 1003 } |
1004 | 1004 |
1005 } // namespace chromeos | 1005 } // namespace chromeos |
OLD | NEW |