| Index: chrome/browser/back_forward_menu_model_unittest.cc
|
| diff --git a/chrome/browser/back_forward_menu_model_unittest.cc b/chrome/browser/back_forward_menu_model_unittest.cc
|
| index b4be3257fc11ee3f25bee00e4719837edb39771f..f6d2ea767b645710e00a47fc42945fb58f51f6ac 100644
|
| --- a/chrome/browser/back_forward_menu_model_unittest.cc
|
| +++ b/chrome/browser/back_forward_menu_model_unittest.cc
|
| @@ -40,27 +40,23 @@ class BackFwdMenuModelTest : public RenderViewHostTestHarness {
|
| // will be pending after we ask to navigate there).
|
| void NavigateToOffset(int offset) {
|
| controller().GoToOffset(offset);
|
| - const NavigationEntry* entry = controller().pending_entry();
|
| - rvh()->SendNavigate(entry->page_id(), entry->url());
|
| + contents()->CommitPendingNavigation();
|
| }
|
|
|
| // Same as NavigateToOffset but goes to an absolute index.
|
| void NavigateToIndex(int index) {
|
| controller().GoToIndex(index);
|
| - const NavigationEntry* entry = controller().pending_entry();
|
| - rvh()->SendNavigate(entry->page_id(), entry->url());
|
| + contents()->CommitPendingNavigation();
|
| }
|
|
|
| // Goes back/forward and commits the load.
|
| void GoBack() {
|
| controller().GoBack();
|
| - const NavigationEntry* entry = controller().pending_entry();
|
| - rvh()->SendNavigate(entry->page_id(), entry->url());
|
| + contents()->CommitPendingNavigation();
|
| }
|
| void GoForward() {
|
| controller().GoForward();
|
| - const NavigationEntry* entry = controller().pending_entry();
|
| - rvh()->SendNavigate(entry->page_id(), entry->url());
|
| + contents()->CommitPendingNavigation();
|
| }
|
| };
|
|
|
|
|