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

Side by Side Diff: components/wifi_sync/wifi_credential.cc

Issue 836363002: wifi_sync: add WifiConfigDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@submit-4.1-network-state-helper
Patch Set: Created 5 years, 11 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
« no previous file with comments | « components/wifi_sync/wifi_credential.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/wifi_sync/wifi_credential.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698