| Index: components/html_viewer/ax_provider_impl.cc
|
| diff --git a/components/html_viewer/ax_provider_impl.cc b/components/html_viewer/ax_provider_impl.cc
|
| index ecb69b47f2743d388bf79f5d040ff8a00f688fa0..8ef9ae78226a68fb516302b1926a1d58e2dd11ad 100644
|
| --- a/components/html_viewer/ax_provider_impl.cc
|
| +++ b/components/html_viewer/ax_provider_impl.cc
|
| @@ -81,10 +81,12 @@ AxNodePtr AxProviderImpl::ConvertAxNode(const WebAXObject& ax_object,
|
| if (ax_object.isAnchor()) {
|
| result->link = mojo::AxLink::New();
|
| result->link->url = String::From(ax_object.url().string());
|
| - } else if (ax_object.childCount() == 0 &&
|
| - !ax_object.stringValue().isEmpty()) {
|
| - result->text = mojo::AxText::New();
|
| - result->text->content = String::From(ax_object.stringValue());
|
| + } else if (ax_object.childCount() == 0) {
|
| + blink::WebString name = ax_object.name();
|
| + if (!name.isEmpty()) {
|
| + result->text = mojo::AxText::New();
|
| + result->text->content = String::From(name);
|
| + }
|
| }
|
|
|
| return result.Pass();
|
|
|