Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Unified Diff: content/browser/frame_host/navigation_controller_impl.cc

Issue 257463004: Copy max_restored_page_id_ when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_controller_impl.cc
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index b1b3ef346e74d340497e5b9bd4a80b004688e812..be56f7df3e4d9659ee39656cb45b83f51b1d6fef 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -1304,6 +1304,7 @@ void NavigationControllerImpl::CopyStateFromAndPrune(
max_source_index--;
InsertEntriesFrom(*source, max_source_index);
+ max_restored_page_id_ = source->max_restored_page_id_;
Charlie Reis 2014/04/24 18:02:02 nit: Let's put this down near the CopyMaxPageIDsFr
Alexander Semashko 2014/04/24 21:40:37 Done.
// Adjust indices such that the last entry and pending are at the end now.
last_committed_entry_index_ = GetEntryCount() - 1;

Powered by Google App Engine
This is Rietveld 408576698