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

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

Issue 11614035: Improve NetworkStateHandler API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separate out OnDefaultNetworkChanged and move kMatchType* to NetworkStateHandler Created 8 years 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: ash/system/chromeos/network/network_icon.cc
diff --git a/ash/system/chromeos/network/network_icon.cc b/ash/system/chromeos/network/network_icon.cc
index 247007a001e557b0605f1219692d36f4806989ef..9974721781fec156060399684cafd11560cf52e1 100644
--- a/ash/system/chromeos/network/network_icon.cc
+++ b/ash/system/chromeos/network/network_icon.cc
@@ -482,8 +482,8 @@ void NetworkIconImpl::Update(const NetworkState* network) {
bool dirty = image_.isNull();
// If the network state has changed, the icon needs updating.
- if (state_ != network->state()) {
- state_ = network->state();
+ if (state_ != network->connection_state()) {
+ state_ = network->connection_state();
dirty = true;
}

Powered by Google App Engine
This is Rietveld 408576698