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

Unified Diff: content/browser/frame_host/interstitial_page_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/interstitial_page_impl.cc
diff --git a/content/browser/frame_host/interstitial_page_impl.cc b/content/browser/frame_host/interstitial_page_impl.cc
index 4fbe4425e62aba3e3ac58ab17463403e05b4a798..1c3e782e5ae2d2745ec5111478a3468494f49239 100644
--- a/content/browser/frame_host/interstitial_page_impl.cc
+++ b/content/browser/frame_host/interstitial_page_impl.cc
@@ -246,8 +246,7 @@ void InterstitialPageImpl::Show() {
GURL data_url = GURL("data:text/html;charset=utf-8," +
net::EscapePath(delegate_->GetHTMLContents()));
frame_tree_.root()->current_frame_host()->NavigateToInterstitialURL(data_url);
- frame_tree_.root()->current_frame_host()->SetAccessibilityMode(
- GetAccessibilityMode());
+ frame_tree_.root()->current_frame_host()->UpdateAccessibilityMode();
notification_registrar_.Add(this, NOTIFICATION_NAV_ENTRY_PENDING,
Source<NavigationController>(controller_));
« no previous file with comments | « content/browser/accessibility/accessibility_ui.cc ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698