Index: content/browser/frame_host/navigation_controller_impl_unittest.cc |
diff --git a/content/browser/frame_host/navigation_controller_impl_unittest.cc b/content/browser/frame_host/navigation_controller_impl_unittest.cc |
index 5f3a55ce0eeddce46a946bb145a73bcb1b126bb3..32c00d16b33ef9348fbffc37ebeb3e6069d440d7 100644 |
--- a/content/browser/frame_host/navigation_controller_impl_unittest.cc |
+++ b/content/browser/frame_host/navigation_controller_impl_unittest.cc |
@@ -1049,7 +1049,7 @@ TEST_F(NavigationControllerTest, LoadURL_PrivilegedPending) { |
kExistingURL1, Referrer(), ui::PAGE_TRANSITION_TYPED, std::string()); |
int entry_id = controller.GetPendingEntry()->GetUniqueID(); |
// Pretend it has bindings so we can tell if we incorrectly copy it. |
- main_test_rfh()->GetRenderViewHost()->AllowBindings(2); |
+ main_test_rfh()->AllowBindings(2); |
main_test_rfh()->PrepareForCommit(); |
main_test_rfh()->SendNavigate(entry_id, true, kExistingURL1); |
EXPECT_EQ(1U, navigation_entry_committed_counter_); |
@@ -1342,7 +1342,7 @@ TEST_F(NavigationControllerTest, LoadURL_WithBindings) { |
int entry_id = controller.GetPendingEntry()->GetUniqueID(); |
orig_rfh->PrepareForCommit(); |
TestRenderFrameHost* new_rfh = contents()->GetPendingMainFrame(); |
- new_rfh->GetRenderViewHost()->AllowBindings(1); |
+ new_rfh->AllowBindings(1); |
new_rfh->SendNavigate(entry_id, true, url2); |
// The second load should be committed, and bindings should be remembered. |