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

Side by Side Diff: chrome/browser/chromeos/cros/network_library.cc

Issue 10169014: Parse and store Wifi bssid and frequency properites. (Closed) Base URL: http://git.chromium.org/git/chromium/src@master
Patch Set: Provide TestApi for SetSsid/SetHexSsid Created 8 years, 8 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
OLDNEW
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 "chrome/browser/chromeos/cros/network_library.h" 5 #include "chrome/browser/chromeos/cros/network_library.h"
6 6
7 #include <dbus/dbus-glib.h> 7 #include <dbus/dbus-glib.h>
8 8
9 #include "base/i18n/icu_encoding_detection.h" 9 #include "base/i18n/icu_encoding_detection.h"
10 #include "base/i18n/icu_string_conversions.h" 10 #include "base/i18n/icu_string_conversions.h"
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 } 1159 }
1160 1160
1161 //////////////////////////////////////////////////////////////////////////////// 1161 ////////////////////////////////////////////////////////////////////////////////
1162 // WifiNetwork 1162 // WifiNetwork
1163 1163
1164 WifiNetwork::WifiNetwork(const std::string& service_path) 1164 WifiNetwork::WifiNetwork(const std::string& service_path)
1165 : WirelessNetwork(service_path, TYPE_WIFI), 1165 : WirelessNetwork(service_path, TYPE_WIFI),
1166 encryption_(SECURITY_NONE), 1166 encryption_(SECURITY_NONE),
1167 passphrase_required_(false), 1167 passphrase_required_(false),
1168 hidden_ssid_(false), 1168 hidden_ssid_(false),
1169 frequency_(0),
1169 eap_method_(EAP_METHOD_UNKNOWN), 1170 eap_method_(EAP_METHOD_UNKNOWN),
1170 eap_phase_2_auth_(EAP_PHASE_2_AUTH_AUTO), 1171 eap_phase_2_auth_(EAP_PHASE_2_AUTH_AUTO),
1171 eap_use_system_cas_(true), 1172 eap_use_system_cas_(true),
1172 eap_save_credentials_(false), 1173 eap_save_credentials_(false),
1173 ALLOW_THIS_IN_INITIALIZER_LIST(weak_pointer_factory_(this)) { 1174 ALLOW_THIS_IN_INITIALIZER_LIST(weak_pointer_factory_(this)) {
1174 } 1175 }
1175 1176
1176 WifiNetwork::~WifiNetwork() {} 1177 WifiNetwork::~WifiNetwork() {}
1177 1178
1178 void WifiNetwork::CalculateUniqueId() { 1179 void WifiNetwork::CalculateUniqueId() {
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 NetworkLibrary* impl; 1473 NetworkLibrary* impl;
1473 if (stub) 1474 if (stub)
1474 impl = new NetworkLibraryImplStub(); 1475 impl = new NetworkLibraryImplStub();
1475 else 1476 else
1476 impl = new NetworkLibraryImplCros(); 1477 impl = new NetworkLibraryImplCros();
1477 impl->Init(); 1478 impl->Init();
1478 return impl; 1479 return impl;
1479 } 1480 }
1480 1481
1481 } // namespace chromeos 1482 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.h ('k') | chrome/browser/chromeos/cros/network_library_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698