Home | History | Annotate | Download | only in network

Lines Matching refs:service_path

63                            const std::string& service_path) {
65 ShowNetworkConnectError(error_name, service_path);
68 void HandleUnconfiguredNetwork(const std::string& service_path) {
70 GetNetworkState(service_path);
72 NET_LOG_ERROR("Configuring unknown network", service_path);
80 ShowNetworkConfigure(service_path);
88 ShowNetworkConfigure(service_path);
94 ash::network_connect::ActivateCellular(service_path);
98 ash::network_connect::ShowMobileSetup(service_path);
104 ShowNetworkSettings(service_path);
137 void OnConnectFailed(const std::string& service_path,
140 NET_LOG_ERROR("Connect Failed: " + error_name, service_path);
153 HandleUnconfiguredNetwork(service_path);
159 service_path)) {
160 HandleUnconfiguredNetwork(service_path);
166 network_connect::ActivateCellular(service_path);
172 network_connect::ShowNetworkSettings(service_path);
177 ShowErrorNotification(error_name, service_path);
192 HandleUnconfiguredNetwork(service_path);
195 void OnConnectSucceeded(const std::string& service_path) {
196 NET_LOG_USER("Connect Succeeded", service_path);
206 void CallConnectToNetwork(const std::string& service_path,
214 service_path,
215 base::Bind(&OnConnectSucceeded, service_path),
216 base::Bind(&OnConnectFailed, service_path),
220 void OnActivateFailed(const std::string& service_path,
223 NET_LOG_ERROR("Unable to activate network", service_path);
224 ShowErrorNotification(network_connect::kErrorActivateFailed, service_path);
227 void OnActivateSucceeded(const std::string& service_path) {
228 NET_LOG_USER("Activation Succeeded", service_path);
238 const std::string& service_path) {
239 NET_LOG_USER("Configure Succeeded", service_path);
244 CallConnectToNetwork(service_path, check_error_state);
264 const std::string& service_path,
267 NET_LOG_ERROR(desc + ": Failed: " + config_error_name, service_path);
269 NetworkConnectionHandler::kErrorConfigureFailed, service_path);
289 const std::string& service_path,
291 NET_LOG_USER("ClearPropertiesAndConnect", service_path);
295 service_path,
298 service_path, check_error_state),
299 base::Bind(&SetPropertiesFailed, "ClearProperties", service_path));
303 const std::string& service_path,
308 service_path,
311 service_path,
313 base::Bind(&SetPropertiesFailed, "SetProperties", service_path));
316 const NetworkState* GetNetworkState(const std::string& service_path) {
318 GetNetworkState(service_path);
332 void ConnectToNetwork(const std::string& service_path) {
333 NET_LOG_USER("ConnectToNetwork", service_path);
334 const NetworkState* network = GetNetworkState(service_path);
337 NET_LOG_USER("Configure: " + network->error(), service_path);
340 HandleUnconfiguredNetwork(service_path);
343 ActivateCellular(service_path);
348 CallConnectToNetwork(service_path, check_error_state);
402 void ActivateCellular(const std::string& service_path) {
403 NET_LOG_USER("ActivateCellular", service_path);
404 const NetworkState* cellular = GetNetworkState(service_path);
406 NET_LOG_ERROR("ActivateCellular with no Service", service_path);
413 NET_LOG_ERROR("ActivateCellular with no Device", service_path);
419 ShowMobileSetup(service_path);
423 NET_LOG_ERROR("ActivateCellular for activated service", service_path);
428 service_path,
430 base::Bind(&OnActivateSucceeded, service_path),
431 base::Bind(&OnActivateFailed, service_path));
434 void ShowMobileSetup(const std::string& service_path) {
436 const NetworkState* cellular = handler->GetNetworkState(service_path);
438 NET_LOG_ERROR("ShowMobileSetup without Cellular network", service_path);
454 service_path)));
458 service_path);
461 void ConfigureNetworkAndConnect(const std::string& service_path,
464 NET_LOG_USER("ConfigureNetworkAndConnect", service_path);
471 NetworkConnectionHandler::kErrorConfigureFailed, service_path);
475 service_path, profile_path,
477 service_path, base::Passed(&properties_to_set)),
479 "SetProfile: " + profile_path, service_path));
494 const std::string& service_path) {
542 const NetworkState* network = GetNetworkState(service_path);
575 void ShowNetworkSettings(const std::string& service_path) {
579 service_path);