| Index: content/browser/accessibility/dump_accessibility_tree_browsertest.cc
|
| diff --git a/content/browser/accessibility/dump_accessibility_tree_browsertest.cc b/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
|
| index de73995a11c5e54caaa9da621e4ff508e1a358e4..4b461be793f76878499552428976e4e8c42b9b9a 100644
|
| --- a/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
|
| +++ b/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
|
| @@ -19,6 +19,7 @@
|
| #include "content/browser/accessibility/browser_accessibility_manager.h"
|
| #include "content/browser/renderer_host/render_view_host_impl.h"
|
| #include "content/browser/renderer_host/render_widget_host_view_base.h"
|
| +#include "content/browser/web_contents/web_contents_impl.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/common/content_paths.h"
|
| #include "content/public/common/content_switches.h"
|
| @@ -223,14 +224,14 @@ void DumpAccessibilityTreeTest::RunTest(
|
| // Wait for notifications. If there's a @WAIT-FOR directive, break when
|
| // the text we're waiting for appears in the dump, otherwise break after
|
| // the first notification, which will be a load complete.
|
| - RenderWidgetHostViewBase* host_view = static_cast<RenderWidgetHostViewBase*>(
|
| - shell()->web_contents()->GetRenderWidgetHostView());
|
| + WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(
|
| + shell()->web_contents());
|
| std::string actual_contents;
|
| do {
|
| waiter->WaitForNotification();
|
| base::string16 actual_contents_utf16;
|
| AccessibilityTreeFormatter formatter(
|
| - host_view->GetBrowserAccessibilityManager()->GetRoot());
|
| + web_contents->GetRootBrowserAccessibilityManager()->GetRoot());
|
| formatter.SetFilters(filters);
|
| formatter.FormatAccessibilityTree(&actual_contents_utf16);
|
| actual_contents = base::UTF16ToUTF8(actual_contents_utf16);
|
|
|