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

Unified Diff: content/browser/tab_contents/tab_contents.cc

Issue 7491096: Fix regression with back-button not working on prerendered and instant pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few fixes for multiple history entries at swap in Created 9 years, 4 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/tab_contents/tab_contents.cc
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 14a387a62d7298b7d325c9325819baf2291c3afb..2965d7efed5c66a1f625ac674c5b490c73ce0d68 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -596,6 +596,14 @@ bool TabContents::NavigateToEntry(
return true;
}
+void TabContents::SetHistoryLengthAndClear(int history_length) {
+ RenderViewHost* rvh = render_view_host();
+ if (!rvh)
+ return;
+ rvh->Send(new ViewMsg_SetHistoryLengthAndClear(rvh->routing_id(),
+ history_length));
+}
+
void TabContents::Stop() {
render_manager_.Stop();
FOR_EACH_OBSERVER(TabContentsObserver, observers_, StopNavigation());

Powered by Google App Engine
This is Rietveld 408576698