| Index: content/renderer/render_view_impl.cc
|
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
| index 980927be7f946be56ad351c6ea7a9c9737edc6b2..5a302092ed86f0a14741d719e8d1a4891181a3c0 100644
|
| --- a/content/renderer/render_view_impl.cc
|
| +++ b/content/renderer/render_view_impl.cc
|
| @@ -1320,16 +1320,15 @@ void RenderViewImpl::OnPauseVideo() {
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| -// Sends the last committed session history state to the browser so it will be
|
| -// saved before we navigate to a new page. This must be called *before* the
|
| -// page ID has been updated so we know what it was.
|
| +// Sends the current history state to the browser so it will be saved before we
|
| +// navigate to a new page.
|
| void RenderViewImpl::UpdateSessionHistory(WebFrame* frame) {
|
| // If we have a valid page ID at this point, then it corresponds to the page
|
| // we are navigating away from. Otherwise, this is the first navigation, so
|
| // there is no past session history to record.
|
| if (page_id_ == -1)
|
| return;
|
| - SendUpdateState(history_controller_->GetPreviousEntry());
|
| + SendUpdateState(history_controller_->GetCurrentEntry());
|
| }
|
|
|
| void RenderViewImpl::SendUpdateState(HistoryEntry* entry) {
|
|
|