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 612bfa2ebdfdb5744e84803cb93af28620092494..3480d1fcc916e08486949e2bc56989a605a4b5fe 100644 |
--- a/content/browser/accessibility/browser_accessibility_android.cc |
+++ b/content/browser/accessibility/browser_accessibility_android.cc |
@@ -392,6 +392,12 @@ base::string16 BrowserAccessibilityAndroid::GetText() const { |
text = placeholder; |
else if (!value().empty()) |
text = base::UTF8ToUTF16(value()); |
+ else if (title_elem_id) { |
+ BrowserAccessibility* title_elem = |
+ manager()->GetFromID(title_elem_id); |
+ if (title_elem) |
+ text = static_cast<BrowserAccessibilityAndroid*>(title_elem)->GetText(); |
+ } |
// This is called from PlatformIsLeaf, so don't call PlatformChildCount |
// from within this! |