Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(758)

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2544993002: Avoid enabling accessibility for WebContents that are never shown (Closed)
Patch Set: Get rid of 'extension' from content code Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 25b2262f9b04b79d4d62996514af921e0998a259..04d9450f6333ee12d24cbf2f6ec915e7e220b2f7 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -2842,8 +2842,9 @@ bool RenderFrameHostImpl::IsSameSiteInstance(
return GetSiteInstance() == other_render_frame_host->GetSiteInstance();
}
-void RenderFrameHostImpl::SetAccessibilityMode(AccessibilityMode mode) {
- Send(new FrameMsg_SetAccessibilityMode(routing_id_, mode));
+void RenderFrameHostImpl::UpdateAccessibilityMode() {
+ AccessibilityMode accessibility_mode = delegate_->GetAccessibilityMode();
+ Send(new FrameMsg_SetAccessibilityMode(routing_id_, accessibility_mode));
}
void RenderFrameHostImpl::RequestAXTreeSnapshot(
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698