Chromium Code Reviews| 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 89e96a4bad872c18b3ea1331e5035b563279b099..b15400aba42faee352b074b1593cfaa8e7e16f74 100644 |
| --- a/content/browser/accessibility/dump_accessibility_tree_browsertest.cc |
| +++ b/content/browser/accessibility/dump_accessibility_tree_browsertest.cc |
| @@ -19,15 +19,16 @@ |
| #include "content/browser/renderer_host/render_view_host_impl.h" |
| #include "content/public/browser/notification_service.h" |
| #include "content/public/browser/notification_types.h" |
| -#include "content/public/browser/render_widget_host_view.h" |
| #include "content/public/browser/web_contents.h" |
| #include "content/public/common/content_paths.h" |
| +#include "content/port/browser/render_widget_host_view_port.h" |
|
jam
2012/03/22 17:15:41
nit: order
Jói
2012/03/22 17:39:58
Done.
|
| #include "testing/gtest/include/gtest/gtest.h" |
| using content::OpenURLParams; |
| using content::RenderViewHostImpl; |
| using content::RenderWidgetHostImpl; |
| using content::RenderWidgetHost; |
| +using content::RenderWidgetHostViewPort; |
| using content::Referrer; |
| namespace { |
| @@ -76,10 +77,9 @@ class DumpAccessibilityTreeTest : public InProcessBrowserTest { |
| IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| PlatformTreeDifferenceTest) { |
| - content::RenderWidgetHostView* host_view = |
| - browser()->GetSelectedWebContents()->GetRenderWidgetHostView(); |
| + RenderWidgetHostViewPort* host_view = static_cast<RenderWidgetHostViewPort*>( |
| + browser()->GetSelectedWebContents()->GetRenderWidgetHostView()); |
| RenderWidgetHost* host = host_view->GetRenderWidgetHost(); |
| - // TODO(joi): Remove this dependency |
| RenderViewHostImpl* view_host = |
| static_cast<RenderViewHostImpl*>(RenderWidgetHostImpl::From(host)); |
| view_host->set_save_accessibility_tree_for_testing(true); |