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

Unified Diff: chrome/browser/chromeos/status/network_menu_icon.cc

Issue 12079011: Update system tray if vpn networks appear (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments Created 7 years, 11 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/tray/system_tray_bubble.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/network_menu_icon.cc
diff --git a/chrome/browser/chromeos/status/network_menu_icon.cc b/chrome/browser/chromeos/status/network_menu_icon.cc
index 7faba2d58ae4b6d163ed20cf38e4db013b506a08..68d4b2ff895758ebc63ee9bd51b29eb74ee3c2c9 100644
--- a/chrome/browser/chromeos/status/network_menu_icon.cc
+++ b/chrome/browser/chromeos/status/network_menu_icon.cc
@@ -546,9 +546,10 @@ void NetworkIcon::UpdateIcon(const Network* network) {
}
void NetworkIcon::GenerateImage() {
- if (icon_.isNull())
- return;
-
+ if (icon_.isNull()) {
+ set_icon(NetworkMenuIcon::GetDisconnectedImage(
+ NetworkMenuIcon::ARCS, resource_color_theme_));
+ }
image_ = NetworkMenuIcon::GenerateImageFromComponents(icon_, top_left_badge_,
top_right_badge_, bottom_left_badge_, bottom_right_badge_);
}
« no previous file with comments | « ash/system/tray/system_tray_bubble.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698