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

Unified Diff: content/renderer/history_controller.cc

Issue 1138543002: Better remove HistoryNodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | content/renderer/history_entry.h » ('j') | content/renderer/history_entry.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/history_controller.cc
diff --git a/content/renderer/history_controller.cc b/content/renderer/history_controller.cc
index f2d3d96d341213eeb0ceda09b3d1aa2d1c9fd9e3..850bae3cd07bb50effed94210195cfce8469028d 100644
--- a/content/renderer/history_controller.cc
+++ b/content/renderer/history_controller.cc
@@ -179,6 +179,8 @@ void HistoryController::UpdateForCommit(RenderFrameImpl* frame,
if (current_entry_) {
if (HistoryEntry::HistoryNode* node =
current_entry_->GetHistoryNodeForFrame(frame)) {
+ if (!navigation_within_page)
+ node->RemoveChildren();
node->set_item(item);
}
}
« no previous file with comments | « no previous file | content/renderer/history_entry.h » ('j') | content/renderer/history_entry.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698