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

Unified Diff: ash/common/system/tray/tray_utils.cc

Issue 2678353005: Remove pre-MD code related to tray/menu user profiles. (Closed)
Patch Set: tdanderson review, a11y Created 3 years, 10 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
Index: ash/common/system/tray/tray_utils.cc
diff --git a/ash/common/system/tray/tray_utils.cc b/ash/common/system/tray/tray_utils.cc
index 2fa65d2670e67848b7989f8c1d5f7203b3c90630..752394e822b6e86202c9312d1caf556a13ca5d25 100644
--- a/ash/common/system/tray/tray_utils.cc
+++ b/ash/common/system/tray/tray_utils.cc
@@ -74,21 +74,4 @@ void SetTrayLabelItemBorder(TrayItemView* tray_view, ShelfAlignment alignment) {
}
}
-void GetAccessibleLabelFromDescendantViews(
- views::View* view,
- std::vector<base::string16>& out_labels) {
- ui::AXNodeData temp_node_data;
- view->GetAccessibleNodeData(&temp_node_data);
- if (!temp_node_data.GetStringAttribute(ui::AX_ATTR_NAME).empty())
- out_labels.push_back(temp_node_data.GetString16Attribute(ui::AX_ATTR_NAME));
-
- // Do not descend into static text labels which may compute their own labels
- // recursively.
- if (temp_node_data.role == ui::AX_ROLE_STATIC_TEXT)
- return;
-
- for (int i = 0; i < view->child_count(); ++i)
- GetAccessibleLabelFromDescendantViews(view->child_at(i), out_labels);
Evan Stade 2017/02/09 17:45:07 recursion really bothers me
-}
-
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698