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

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

Issue 2587133003: [ash-md] Removes "Connecting..." suffix from the network / VPN rows (Closed)
Patch Set: [ash-md] Removes Connecting... suffix from the network row Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/network/network_icon.cc
diff --git a/ash/common/system/chromeos/network/network_icon.cc b/ash/common/system/chromeos/network/network_icon.cc
index fbd1b33a7d6395a034727bd90b55565bb46c2540..59f7695526fecd74e927e7de511a606cfbd586e7 100644
--- a/ash/common/system/chromeos/network/network_icon.cc
+++ b/ash/common/system/chromeos/network/network_icon.cc
@@ -928,12 +928,14 @@ base::string16 GetLabelForNetwork(const chromeos::NetworkState* network,
std::string activation_state = network->activation_state();
if (icon_type == ICON_TYPE_LIST) {
// Show "<network>: [Connecting|Activating|Reconnecting]..."
+ // TODO(varkha): Remaining states should migrate to secondary status in the
+ // network item and no longer be part of the label.
if (network->IsReconnecting()) {
return l10n_util::GetStringFUTF16(
IDS_ASH_STATUS_TRAY_NETWORK_LIST_RECONNECTING,
base::UTF8ToUTF16(network->name()));
}
- if (network->IsConnectingState()) {
+ if (!UseMd() && network->IsConnectingState()) {
bruthig 2016/12/20 20:26:01 It appears that this code path is used during OOBE
varkha 2016/12/20 20:58:56 Makes me wonder if it should use ICON_TYPE_DEFAULT
varkha 2016/12/20 21:41:09 It looked like adding a value to the enum was simp
return l10n_util::GetStringFUTF16(
IDS_ASH_STATUS_TRAY_NETWORK_LIST_CONNECTING,
base::UTF8ToUTF16(network->name()));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698