Lines Matching defs:cros
14 #include "chrome/browser/chromeos/cros/cros_library.h"
105 NetworkLibrary* cros = CrosLibrary::Get()->GetNetworkLibrary();
108 WifiNetwork* wifi = cros->FindWifiNetworkByPath(service_path);
123 cros->ConnectToWifiNetwork(wifi);
136 CellularNetwork* cellular = cros->FindCellularNetworkByPath(
151 cros->ConnectToCellularNetwork(cellular);
166 VirtualNetwork* vpn = cros->FindVirtualNetworkByPath(service_path);
171 if (cros->connected_network())
172 owner_->ShowTabbedNetworkSettings(cros->connected_network());
180 cros->ConnectToVirtualNetwork(vpn);
241 NetworkLibrary* cros = CrosLibrary::Get()->GetNetworkLibrary();
246 cros->EnableEthernetNetworkDevice(!cros->ethernet_enabled());
248 cros->EnableWifiNetworkDevice(!cros->wifi_enabled());
250 const NetworkDevice* cellular = cros->FindCellularDevice();
253 cros->EnableCellularNetworkDevice(!cros->cellular_enabled());
256 cros->EnableCellularNetworkDevice(!cros->cellular_enabled());
262 cros->EnableOfflineMode(!cros->offline_mode());
264 if (cros->ethernet_connected()) {
265 owner_->ShowTabbedNetworkSettings(cros->ethernet_network());
272 const VirtualNetwork* active_vpn = cros->virtual_network();
274 cros->DisconnectFromNetwork(active_vpn);
329 NetworkLibrary* cros = CrosLibrary::Get()->GetNetworkLibrary();
330 if (cros->IsLocked()) {
343 bool ethernet_available = cros->ethernet_available();
344 bool ethernet_enabled = cros->ethernet_enabled();
346 bool ethernet_connected = cros->ethernet_connected();
347 bool ethernet_connecting = cros->ethernet_connecting();
370 bool wifi_available = cros->wifi_available();
371 bool wifi_enabled = cros->wifi_enabled();
373 const WifiNetworkVector& wifi_networks = cros->wifi_networks();
374 const WifiNetwork* active_wifi = cros->wifi_network();
426 bool cellular_available = cros->cellular_available();
427 bool cellular_enabled = cros->cellular_enabled();
429 const CellularNetworkVector& cell_networks = cros->cellular_networks();
430 const CellularNetwork* active_cellular = cros->cellular_network();
497 cros->GetSignificantDataPlan(active_cellular->service_path());
509 const NetworkDevice* cellular_device = cros->FindCellularDevice();
515 std::string carrier_id = cros->GetCellularHomeCarrierId();
561 const Network* connected_network = cros->connected_network();
580 if (cros->wifi_scanning()) {
595 const NetworkDevice* cellular = cros->FindCellularDevice();
618 // menu_items_.push_back(MenuItem(cros->offline_mode() ?
660 NetworkLibrary* cros = CrosLibrary::Get()->GetNetworkLibrary();
661 const Network* connected_network = cros->connected_network();
666 const VirtualNetworkVector& virtual_networks = cros->virtual_networks();
667 const VirtualNetwork* active_vpn = cros->virtual_network();
769 NetworkLibrary* cros = CrosLibrary::Get()->GetNetworkLibrary();
779 bool connected = cros->Connected(); // always call for test expectations.
781 std::string ip_address = cros->IPAddress();
784 ASCIIToUTF16(cros->IPAddress()), SkBitmap(), std::string(),
790 const NetworkDevice* ether = cros->FindEthernetDevice();
793 cros->GetIPConfigs(ether->device_path(), &hardware_address,
803 if (cros->wifi_enabled()) {
804 const NetworkDevice* wifi = cros->FindWifiDevice();
807 cros->GetIPConfigs(wifi->device_path(),
1050 NetworkLibrary* cros = CrosLibrary::Get()->GetNetworkLibrary();
1051 if (!(cros->virtual_network() && network == cros->connected_network()))
1114 NetworkLibrary* cros = CrosLibrary::Get()->GetNetworkLibrary();
1115 cros->RequestNetworkScan();