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

Unified Diff: ash/system/chromeos/network/network_observer.cc

Issue 21030006: NetworkState cleanup, pass properties to InitialPropertiesReceived (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 5 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
« no previous file with comments | « ash/system/chromeos/network/network_icon.cc ('k') | chrome/browser/ui/webui/chromeos/about_network.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/network/network_observer.cc
diff --git a/ash/system/chromeos/network/network_observer.cc b/ash/system/chromeos/network/network_observer.cc
index 592c7ed74febb6beb4a83c437ccb098a8da9cf8a..09f4f45c497b8c88f719ee3408b62685e67066b5 100644
--- a/ash/system/chromeos/network/network_observer.cc
+++ b/ash/system/chromeos/network/network_observer.cc
@@ -16,8 +16,9 @@ NetworkObserver::NetworkType NetworkObserver::GetNetworkTypeForNetworkState(
return NETWORK_UNKNOWN;
const std::string& type = network->type();
if (type == flimflam::kTypeCellular) {
- if (network->technology() == flimflam::kNetworkTechnologyLte ||
- network->technology() == flimflam::kNetworkTechnologyLteAdvanced)
+ const std::string& technology = network->network_technology();
+ if (technology == flimflam::kNetworkTechnologyLte ||
+ technology == flimflam::kNetworkTechnologyLteAdvanced)
return NETWORK_CELLULAR_LTE;
else
return NETWORK_CELLULAR;
« no previous file with comments | « ash/system/chromeos/network/network_icon.cc ('k') | chrome/browser/ui/webui/chromeos/about_network.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698