summaryrefslogtreecommitdiffstats
path: root/views/controls/link.cc
diff options
context:
space:
mode:
authormhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-04 03:51:23 +0000
committermhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-04 03:51:23 +0000
commit262fb5ff37c75b8e4b068b813e1e0f2b92239399 (patch)
treedd276b5cb8eeebedf5a0841ca314c560f91a1c32 /views/controls/link.cc
parent28a2912d9aeba1a743af7fabe883ad514f12503e (diff)
downloadchromium_src-262fb5ff37c75b8e4b068b813e1e0f2b92239399.zip
chromium_src-262fb5ff37c75b8e4b068b813e1e0f2b92239399.tar.gz
chromium_src-262fb5ff37c75b8e4b068b813e1e0f2b92239399.tar.bz2
Fix Regression for Accessible Names appearing as NAMELESS.
The refactoring in r43558 caused SetAccessibleName and GetAccessibleName to be none virtual causing couple of components not having accessible names since they depend on overriding it. The following change sets the accessible name directly since view now stores it. BUG=40343 TEST=With AccExplorer32 check if accessible names have been resolved. Review URL: http://codereview.chromium.org/1616004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43584 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/link.cc')
-rw-r--r--views/controls/link.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/views/controls/link.cc b/views/controls/link.cc
index 083870c..b258217 100644
--- a/views/controls/link.cc
+++ b/views/controls/link.cc
@@ -151,13 +151,6 @@ bool Link::GetAccessibleRole(AccessibilityTypes::Role* role) {
return true;
}
-bool Link::GetAccessibleName(std::wstring* name) {
- DCHECK(name);
-
- *name = GetText();
- return !name->empty();
-}
-
void Link::SetFont(const gfx::Font& font) {
Label::SetFont(font);
ValidateStyle();