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 e4ddf6e9978bb9338490d596eb20f31795b9e2ce..db8b139b5628ab55c43ccaa9d1d92dbe177e8fa5 100644 |
--- a/content/browser/web_contents/web_contents_impl_unittest.cc |
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc |
@@ -1141,8 +1141,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"); |
@@ -1169,8 +1168,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"); |
@@ -1252,8 +1250,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"); |
@@ -1280,8 +1277,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"); |