Lines Matching refs:selected_service_

407   if (selected_service_)  in IsConnected()
408 return selected_service_->IsConnected(); in IsConnected()
413 return service == selected_service_ && IsConnected(); in IsConnectedToService()
510 if (selected_service_) { in OnAfterResume()
511 selected_service_->set_unreliable(false); in OnAfterResume()
722 if (!selected_service_) { in IsUsingStaticIP()
725 return selected_service_->HasStaticIPAddress(); in IsUsingStaticIP()
729 if (!selected_service_) { in IsUsingStaticNameServers()
732 return selected_service_->HasStaticNameServers(); in IsUsingStaticNameServers()
744 if (selected_service_) { in AcquireIPConfigWithLeaseName()
752 selected_service_->dhcp_properties()))); in AcquireIPConfigWithLeaseName()
863 SLOG(this, 2) << __func__ << " selected_service " << selected_service_.get() in ConfigureStaticIPTask()
866 if (!selected_service_ || !ipconfig_) { in ConfigureStaticIPTask()
917 if (selected_service_) { in SetupConnection()
918 selected_service_->SetConnection(connection_); in SetupConnection()
996 if (selected_service_) { in OnIPConfigUpdated()
998 selected_service_->mutable_static_ip_parameters()); in OnIPConfigUpdated()
1021 if (selected_service_) { in OnIPConfigFailed()
1071 selected_service_->mutable_static_ip_parameters()); in OnIPConfigRefreshed()
1078 if (selected_service_) { in OnIPConfigFailure()
1080 selected_service_->DisconnectWithFailure(Service::kFailureDHCP, in OnIPConfigFailure()
1115 if (selected_service_->unreliable()) { in OnConnected()
1127 if (selected_service_) { in OnConnectionUpdated()
1128 manager_->UpdateService(selected_service_); in OnConnectionUpdated()
1146 if (selected_service_.get()) { in DestroyConnection()
1148 << selected_service_->unique_name(); in DestroyConnection()
1149 selected_service_->SetConnection(nullptr); in DestroyConnection()
1159 if (selected_service_.get() == service.get()) { in SelectService()
1165 if (selected_service_.get()) { in SelectService()
1166 if (selected_service_->state() != Service::kStateFailure) { in SelectService()
1167 selected_service_->SetState(Service::kStateIdle); in SelectService()
1171 selected_service_->SetConnection(nullptr); in SelectService()
1173 selected_service_->set_unreliable(false); in SelectService()
1182 selected_service_ = service; in SelectService()
1188 if (selected_service_.get()) { in SetServiceState()
1189 selected_service_->SetState(state); in SetServiceState()
1194 if (selected_service_.get()) { in SetServiceFailure()
1195 selected_service_->SetFailure(failure_state); in SetServiceFailure()
1200 if (selected_service_.get()) { in SetServiceFailureSilent()
1201 selected_service_->SetFailureSilent(failure_state); in SetServiceFailureSilent()
1253 if (!selected_service_) { in RequestPortalDetection()
1265 if (selected_service_->state() != Service::kStatePortal) { in RequestPortalDetection()
1289 DCHECK(selected_service_); in StartPortalDetection()
1290 if (selected_service_->IsPortalDetectionDisabled()) { in StartPortalDetection()
1291 SLOG(this, 2) << "Service " << selected_service_->unique_name() in StartPortalDetection()
1298 if (selected_service_->IsPortalDetectionAuto() && in StartPortalDetection()
1309 if (selected_service_->HasProxyConfig()) { in StartPortalDetection()
1393 if (selected_service_ && selected_service_->link_monitor_disabled()) { in StartLinkMonitor()
1422 selected_service_->set_unreliable(true); in OnUnreliableLink()
1425 technology_, selected_service_->strength()); in OnUnreliableLink()
1431 selected_service_->set_unreliable(false); in OnReliableLink()
1438 if (!selected_service_) { in OnLinkMonitorFailure()
1457 CHECK(selected_service_); in OnLinkMonitorGatewayChange()
1458 selected_service_->set_connection_id(connection_id); in OnLinkMonitorGatewayChange()
1494 CHECK(selected_service_); in FallbackDNSResultCallback()
1495 if (selected_service_->is_dns_auto_fallback_allowed()) { in FallbackDNSResultCallback()
1534 selected_service_->NotifyIPConfigChanges(); in SwitchDNSServers()
1615 DCHECK(selected_service_.get()); in SetServiceConnectedState()
1617 if (!selected_service_.get()) { in SetServiceConnectedState()
1623 if (!selected_service_->IsConnected()) { in SetServiceConnectedState()
1626 << selected_service_->unique_name() in SetServiceConnectedState()
1690 if (selected_service_.get()) { in PortalDetectorCallback()
1691 selected_service_->SetPortalDetectionFailure( in PortalDetectorCallback()
1727 if (!selected_service_) { in GetSelectedServiceRpcIdentifier()
1730 return selected_service_->GetRpcIdentifier(); in GetSelectedServiceRpcIdentifier()
1894 << (selected_service_ ? "is set." : "is not set."); in SetEnabledUnchecked()