Index: chrome/browser/tab_contents/render_view_host_manager_unittest.cc |
=================================================================== |
--- chrome/browser/tab_contents/render_view_host_manager_unittest.cc (revision 72247) |
+++ chrome/browser/tab_contents/render_view_host_manager_unittest.cc (working copy) |
@@ -313,13 +313,8 @@ |
contents()->NavigateAndCommit(url2); |
RenderViewHost* evil_rvh = contents()->render_view_host(); |
- // Casts the TabContents to a RenderViewHostDelegate::BrowserIntegration so we |
- // can call GoToEntryAtOffset which is private. |
- RenderViewHostDelegate::BrowserIntegration* rvh_delegate = |
- static_cast<RenderViewHostDelegate::BrowserIntegration*>(contents()); |
- |
// Now let's simulate the evil page calling history.back(). |
- rvh_delegate->GoToEntryAtOffset(-1); |
+ contents()->OnGoToEntryAtOffset(-1); |
// We should have a new pending RVH. |
// Note that in this case, the navigation has not committed, so evil_rvh will |
// not be deleted yet. |