Index: content/browser/web_contents/web_contents_impl_unittest.cc |
diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc |
index 08413755370f5e435379a981d80141bf0148f686..3655658546179558cda40447b402c2b32bf4abb3 100644 |
--- a/content/browser/web_contents/web_contents_impl_unittest.cc |
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc |
@@ -1140,8 +1140,7 @@ TEST_F(WebContentsImplTest, CrossSiteNavigationBackPreempted) { |
EXPECT_EQ(url1, entry1->GetURL()); |
EXPECT_EQ(instance1, |
NavigationEntryImpl::FromNavigationEntry(entry1)->site_instance()); |
- EXPECT_TRUE(webui_rfh->GetRenderViewHost()->GetEnabledBindings() & |
- BINDINGS_POLICY_WEB_UI); |
+ EXPECT_TRUE(webui_rfh->GetEnabledBindings() & BINDINGS_POLICY_WEB_UI); |
// Navigate to new site. |
const GURL url2("http://www.google.com"); |
@@ -1168,8 +1167,7 @@ TEST_F(WebContentsImplTest, CrossSiteNavigationBackPreempted) { |
EXPECT_EQ(url2, entry2->GetURL()); |
EXPECT_EQ(instance2, |
NavigationEntryImpl::FromNavigationEntry(entry2)->site_instance()); |
- EXPECT_FALSE(google_rfh->GetRenderViewHost()->GetEnabledBindings() & |
- BINDINGS_POLICY_WEB_UI); |
+ EXPECT_FALSE(google_rfh->GetEnabledBindings() & BINDINGS_POLICY_WEB_UI); |
// Navigate to third page on same site. |
const GURL url3("http://news.google.com"); |
@@ -1251,8 +1249,7 @@ TEST_F(WebContentsImplTest, CrossSiteNavigationBackOldNavigationIgnored) { |
EXPECT_EQ(url1, entry1->GetURL()); |
EXPECT_EQ(instance1, |
NavigationEntryImpl::FromNavigationEntry(entry1)->site_instance()); |
- EXPECT_TRUE(webui_rfh->GetRenderViewHost()->GetEnabledBindings() & |
- BINDINGS_POLICY_WEB_UI); |
+ EXPECT_TRUE(webui_rfh->GetEnabledBindings() & BINDINGS_POLICY_WEB_UI); |
// Navigate to new site. |
const GURL url2("http://www.google.com"); |
@@ -1279,8 +1276,7 @@ TEST_F(WebContentsImplTest, CrossSiteNavigationBackOldNavigationIgnored) { |
EXPECT_EQ(url2, entry2->GetURL()); |
EXPECT_EQ(instance2, |
NavigationEntryImpl::FromNavigationEntry(entry2)->site_instance()); |
- EXPECT_FALSE(google_rfh->GetRenderViewHost()->GetEnabledBindings() & |
- BINDINGS_POLICY_WEB_UI); |
+ EXPECT_FALSE(google_rfh->GetEnabledBindings() & BINDINGS_POLICY_WEB_UI); |
// Navigate to third page on same site. |
const GURL url3("http://news.google.com"); |