| Index: content/browser/accessibility/browser_accessibility_android.cc
|
| diff --git a/content/browser/accessibility/browser_accessibility_android.cc b/content/browser/accessibility/browser_accessibility_android.cc
|
| index fd0bab70144f0a8f95c61b7533cc33c9d88387a2..a605e2aa7e8cac1dfa4c6215de7da3a1259aeb79 100644
|
| --- a/content/browser/accessibility/browser_accessibility_android.cc
|
| +++ b/content/browser/accessibility/browser_accessibility_android.cc
|
| @@ -344,18 +344,6 @@ base::string16 BrowserAccessibilityAndroid::GetText() const {
|
| return base::string16();
|
| }
|
|
|
| - // In accordance with ARIA, some elements use their contents as an
|
| - // accessibility name, so some elements will have the same name as their
|
| - // child. While most platforms expect this, it causes Android to speak the
|
| - // name twice. So in this case we should remove the name from the parent.
|
| - if (GetRole() == ui::AX_ROLE_LIST_ITEM &&
|
| - GetIntAttribute(ui::AX_ATTR_NAME_FROM) == ui::AX_NAME_FROM_CONTENTS) {
|
| - // This is an approximation of "PlatformChildCount() > 0" because we can't
|
| - // call PlatformChildCount from here.
|
| - if (InternalChildCount() > 0 && !HasOnlyTextChildren())
|
| - return base::string16();
|
| - }
|
| -
|
| // We can only expose one accessible name on Android,
|
| // not 2 or 3 like on Windows or Mac.
|
|
|
|
|