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

Unified Diff: ash/system/user/button_from_view.cc

Issue 2860883003: A11y: Add/refactor methods for manipulating bitfields on AXNodeData. (Closed)
Patch Set: Revert comment. Created 3 years, 7 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/system/user/button_from_view.cc
diff --git a/ash/system/user/button_from_view.cc b/ash/system/user/button_from_view.cc
index 0772fc2d5d4d64defc41021e3b68cb5249656f23..6bd8fbd027060fbd8ecab2c2058ab7b3a54e5b6f 100644
--- a/ash/system/user/button_from_view.cc
+++ b/ash/system/user/button_from_view.cc
@@ -79,6 +79,7 @@ void ButtonFromView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
// use the content's label.
if (node_data->GetStringAttribute(ui::AX_ATTR_NAME).empty()) {
ui::AXNodeData content_data;
+ content_data.ClearBitfields();
content_->GetAccessibleNodeData(&content_data);
node_data->SetName(content_data.GetStringAttribute(ui::AX_ATTR_NAME));
}

Powered by Google App Engine
This is Rietveld 408576698