| Index: content/browser/renderer_host/render_view_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
|
| index b9c2a29355bf436508f266ca991efd854a75c25b..e25d394d1d54744fc7120be418d18e772fdb1dcf 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -1892,17 +1892,13 @@ void RenderViewHostImpl::OnAccessibilityNotifications(
|
| accessibility_tree_ = param.acc_tree;
|
| }
|
|
|
| - NotificationType dst_type;
|
| - if (src_type == AccessibilityNotificationLoadComplete)
|
| - dst_type = NOTIFICATION_ACCESSIBILITY_LOAD_COMPLETE;
|
| - else if (src_type == AccessibilityNotificationLayoutComplete)
|
| - dst_type = NOTIFICATION_ACCESSIBILITY_LAYOUT_COMPLETE;
|
| - else
|
| - dst_type = NOTIFICATION_ACCESSIBILITY_OTHER;
|
| - NotificationService::current()->Notify(
|
| - dst_type,
|
| - Source<RenderViewHost>(this),
|
| - NotificationService::NoDetails());
|
| + if (src_type == AccessibilityNotificationLayoutComplete) {
|
| + FOR_EACH_OBSERVER(RenderViewHostObserver, observers_,
|
| + AccessibilityLayoutComplete());
|
| + } else if (src_type == AccessibilityNotificationLoadComplete) {
|
| + FOR_EACH_OBSERVER(RenderViewHostObserver, observers_,
|
| + AccessibilityLoadComplete());
|
| + }
|
| }
|
|
|
| Send(new AccessibilityMsg_Notifications_ACK(GetRoutingID()));
|
|
|