| Index: chrome/browser/extensions/api/automation/automation_apitest.cc
|
| diff --git a/chrome/browser/extensions/api/automation/automation_apitest.cc b/chrome/browser/extensions/api/automation/automation_apitest.cc
|
| index 4cca10e8d096f2a9d0b8488bbdff38ee6c13030b..5755437be1fab8de3172bad1139f049ff6eeff42 100644
|
| --- a/chrome/browser/extensions/api/automation/automation_apitest.cc
|
| +++ b/chrome/browser/extensions/api/automation/automation_apitest.cc
|
| @@ -66,12 +66,8 @@ IN_PROC_BROWSER_TEST_F(AutomationApiTest, TestRendererAccessibilityEnabled) {
|
| ASSERT_EQ(1, browser()->tab_strip_model()->count());
|
| content::WebContents* const tab =
|
| browser()->tab_strip_model()->GetWebContentsAt(0);
|
| - content::RenderWidgetHost* rwh =
|
| - tab->GetRenderWidgetHostView()->GetRenderWidgetHost();
|
| - ASSERT_NE((content::RenderWidgetHost*)NULL, rwh)
|
| - << "Couldn't get RenderWidgetHost";
|
| - ASSERT_FALSE(rwh->IsFullAccessibilityModeForTesting());
|
| - ASSERT_FALSE(rwh->IsTreeOnlyAccessibilityModeForTesting());
|
| + ASSERT_FALSE(tab->IsFullAccessibilityModeForTesting());
|
| + ASSERT_FALSE(tab->IsTreeOnlyAccessibilityModeForTesting());
|
|
|
| base::FilePath extension_path =
|
| test_data_dir_.AppendASCII("automation/basic");
|
| @@ -79,11 +75,8 @@ IN_PROC_BROWSER_TEST_F(AutomationApiTest, TestRendererAccessibilityEnabled) {
|
| LoadExtension(extension_path);
|
| ASSERT_TRUE(got_tree.WaitUntilSatisfied());
|
|
|
| - rwh = tab->GetRenderWidgetHostView()->GetRenderWidgetHost();
|
| - ASSERT_NE((content::RenderWidgetHost*)NULL, rwh)
|
| - << "Couldn't get RenderWidgetHost";
|
| - ASSERT_FALSE(rwh->IsFullAccessibilityModeForTesting());
|
| - ASSERT_TRUE(rwh->IsTreeOnlyAccessibilityModeForTesting());
|
| + ASSERT_FALSE(tab->IsFullAccessibilityModeForTesting());
|
| + ASSERT_TRUE(tab->IsTreeOnlyAccessibilityModeForTesting());
|
| }
|
|
|
| IN_PROC_BROWSER_TEST_F(AutomationApiTest, SanityCheck) {
|
|
|