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

Unified Diff: ui/chromeos/network/network_icon.cc

Issue 425783003: athena: Add a network-selector widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 | « athena/resources/athena_resources.gyp ('k') | ui/chromeos/network/network_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/chromeos/network/network_icon.cc
diff --git a/ui/chromeos/network/network_icon.cc b/ui/chromeos/network/network_icon.cc
index a19b868e556a8a1e04d82afdcf41ba566c91dc45..3d274d5866f057bb572e13cd03615899b9f6b466 100644
--- a/ui/chromeos/network/network_icon.cc
+++ b/ui/chromeos/network/network_icon.cc
@@ -641,7 +641,7 @@ bool NetworkIconImpl::UpdateCellularState(const NetworkState* network) {
bool NetworkIconImpl::UpdatePortalState(const NetworkState* network) {
bool behind_captive_portal = false;
- if (network) {
+ if (network && NetworkPortalDetector::IsInitialized()) {
NetworkPortalDetector::CaptivePortalState state =
NetworkPortalDetector::Get()->GetCaptivePortalState(network->guid());
behind_captive_portal =
« no previous file with comments | « athena/resources/athena_resources.gyp ('k') | ui/chromeos/network/network_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698