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 5a86710d7343234b8bf7b4162aae54593295e028..e9628dbf92b7d1dc7281c503eb1a432a43fbad86 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -2083,7 +2083,9 @@ void RenderViewHostImpl::NotifyMoveOrResizeStarted() { |
void RenderViewHostImpl::OnAccessibilityEvents( |
const std::vector<AccessibilityHostMsg_EventParams>& params) { |
- if (view_ && !is_swapped_out_) { |
+ if ((accessibility_mode() & AccessibilityModeFlagPlatform) && |
+ view_ && |
+ !is_swapped_out_) { |
view_->CreateBrowserAccessibilityManagerIfNeeded(); |
BrowserAccessibilityManager* manager = |
view_->GetBrowserAccessibilityManager(); |