Index: views/controls/button/native_button.cc |
diff --git a/views/controls/button/native_button.cc b/views/controls/button/native_button.cc |
index 5bdc9c739c411f6efe10ccae21894b53ce2fe6dc..7890ee61248748b18e1dfa0c6e57aca1bee2bffe 100644 |
--- a/views/controls/button/native_button.cc |
+++ b/views/controls/button/native_button.cc |
@@ -77,6 +77,9 @@ void NativeButton::SetLabel(const std::wstring& label) { |
if (native_wrapper_) |
native_wrapper_->UpdateLabel(); |
+ |
+ // Update the accessible name whenever the label changes. |
+ SetAccessibleName(label); |
} |
void NativeButton::SetIsDefault(bool is_default) { |