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

Unified Diff: chromeos/network/network_state.cc

Issue 578823003: Add Wimax to ONC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Uploaded missing test files. Reverted network_state_handler change. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/network_state.cc
diff --git a/chromeos/network/network_state.cc b/chromeos/network/network_state.cc
index c47068b719ca5f93cf4453f3001b83d6def4e2ae..915a688de3cdaa9c51afe49888bfdb6e5243b8db 100644
--- a/chromeos/network/network_state.cc
+++ b/chromeos/network/network_state.cc
@@ -163,9 +163,10 @@ bool NetworkState::InitialPropertiesReceived(
has_ca_cert_nss_ = IsCaCertNssSet(properties);
changed |= had_ca_cert_nss != has_ca_cert_nss_;
- // By convention, all visible WiFi networks have a SignalStrength > 0.
- if (visible() && type() == shill::kTypeWifi) {
- if (signal_strength_ <= 0)
+ // By convention, all visible WiFi and WiMAX networks have a
+ // SignalStrength > 0.
+ if ((type() == shill::kTypeWifi || type() == shill::kTypeWimax) &&
Ben Chan 2014/09/17 22:51:38 TODO: cellular has signal strength as well.
pneubeck (no reviews) 2014/09/18 08:50:11 Done.
pneubeck (no reviews) 2014/09/18 09:23:01 Actually, not done. I checked Shill's side, and 'v
Ben Chan 2014/09/18 14:57:06 I wouldn't suggest adding cellular stuff in this C
+ visible() && signal_strength_ <= 0) {
signal_strength_ = 1;
}

Powered by Google App Engine
This is Rietveld 408576698