OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/wifi_sync/wifi_credential.h" | 5 #include "components/wifi_sync/wifi_credential.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 return a.ssid_ < b.ssid_ || | 38 return a.ssid_ < b.ssid_ || |
39 a.security_class_< b.security_class_ || | 39 a.security_class_< b.security_class_ || |
40 a.passphrase_ < b.passphrase_; | 40 a.passphrase_ < b.passphrase_; |
41 } | 41 } |
42 | 42 |
43 // static | 43 // static |
44 WifiCredential::CredentialSet WifiCredential::MakeSet() { | 44 WifiCredential::CredentialSet WifiCredential::MakeSet() { |
45 return CredentialSet(WifiCredential::IsLessThan); | 45 return CredentialSet(WifiCredential::IsLessThan); |
46 } | 46 } |
47 | 47 |
| 48 // static |
| 49 WifiCredential::SsidBytes WifiCredential::MakeSsidBytes( |
| 50 const std::string& ssid) { |
| 51 return SsidBytes(ssid.begin(), ssid.end()); |
| 52 } |
| 53 |
48 } // namespace wifi_sync | 54 } // namespace wifi_sync |
OLD | NEW |