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

Side by Side Diff: components/sync_wifi/wifi_security_class_chromeos.cc

Issue 2463463004: [Sync] Rename wifi_sync to sync_wifi. (Closed)
Patch Set: Created 4 years, 1 month 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 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_security_class.h" 5 #include "components/sync_wifi/wifi_security_class.h"
6 6
7 #include "third_party/cros_system_api/dbus/service_constants.h" 7 #include "third_party/cros_system_api/dbus/service_constants.h"
8 8
9 namespace wifi_sync { 9 namespace sync_wifi {
10 10
11 WifiSecurityClass WifiSecurityClassFromShillSecurity( 11 WifiSecurityClass WifiSecurityClassFromShillSecurity(
12 const std::string& shill_security) { 12 const std::string& shill_security) {
13 if (shill_security == shill::kSecurityNone) 13 if (shill_security == shill::kSecurityNone)
14 return SECURITY_CLASS_NONE; 14 return SECURITY_CLASS_NONE;
15 else if (shill_security == shill::kSecurityWep) 15 else if (shill_security == shill::kSecurityWep)
16 return SECURITY_CLASS_WEP; 16 return SECURITY_CLASS_WEP;
17 else if (shill_security == shill::kSecurityPsk) 17 else if (shill_security == shill::kSecurityPsk)
18 return SECURITY_CLASS_PSK; 18 return SECURITY_CLASS_PSK;
19 else if (shill_security == shill::kSecurity8021x) 19 else if (shill_security == shill::kSecurity8021x)
20 return SECURITY_CLASS_802_1X; 20 return SECURITY_CLASS_802_1X;
21 return SECURITY_CLASS_INVALID; 21 return SECURITY_CLASS_INVALID;
22 } 22 }
23 23
24 } // namespace wifi_sync 24 } // namespace sync_wifi
OLDNEW
« no previous file with comments | « components/sync_wifi/wifi_security_class.cc ('k') | components/sync_wifi/wifi_security_class_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698