summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 18:47:23 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 18:47:23 +0000
commit12a7e779988f47663578c85d29a54feea91b377a (patch)
tree0a535c97a25aab8ff1fe926875e60841ad4fcc99 /chrome/browser/renderer_host
parentf870252fda3d5724feeda33aeb6deaf502643a31 (diff)
downloadchromium_src-12a7e779988f47663578c85d29a54feea91b377a.zip
chromium_src-12a7e779988f47663578c85d29a54feea91b377a.tar.gz
chromium_src-12a7e779988f47663578c85d29a54feea91b377a.tar.bz2
Fix the TestRendererAccessibilityTree browser test so that it's not flaky.
Add a new notification for when the render view host's accessibility tree is updated and verify the tree in the test after that notification is received. BUG=none TEST=none Review URL: http://codereview.chromium.org/1986009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47051 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/render_view_host.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
index a763388..b595939 100644
--- a/chrome/browser/renderer_host/render_view_host.cc
+++ b/chrome/browser/renderer_host/render_view_host.cc
@@ -1841,6 +1841,11 @@ void RenderViewHost::OnAccessibilityObjectStateChange(int acc_obj_id) {
void RenderViewHost::OnAccessibilityTree(
const webkit_glue::WebAccessibility& tree) {
view()->UpdateAccessibilityTree(tree);
+
+ NotificationService::current()->Notify(
+ NotificationType::RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
+ Source<RenderViewHost>(this),
+ NotificationService::NoDetails());
}
void RenderViewHost::OnCSSInserted() {