Chromium Code Reviews| 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 0b06b975200dce0dce4aec261d136bed54ff41aa..c57c590f993fdcfc32ad3ea8edeaa42a87619648 100644 |
| --- a/content/browser/tab_contents/tab_contents.cc |
| +++ b/content/browser/tab_contents/tab_contents.cc |
| @@ -596,12 +596,16 @@ bool TabContents::NavigateToEntry( |
| return true; |
| } |
| -void TabContents::SetHistoryLengthAndClear(int history_length) { |
| +void TabContents::SetHistoryLengthAndPrune(const SiteInstance* site_instance, |
| + int history_length, |
| + int32 minimum_page_id) { |
| RenderViewHost* rvh = render_view_host(); |
| if (!rvh) |
| return; |
| - rvh->Send(new ViewMsg_SetHistoryLengthAndClear(rvh->routing_id(), |
| - history_length)); |
| + DCHECK(!site_instance || rvh->site_instance() == site_instance); |
|
Charlie Reis
2011/08/13 00:29:04
I'm wary about not having an early return in relea
cbentzel
2011/08/13 02:19:12
Actually, some of them may have a pending entry -
Charlie Reis
2011/08/13 06:26:27
Oops, I meant to say "pending RenderViewHost" rath
|
| + rvh->Send(new ViewMsg_SetHistoryLengthAndPrune(rvh->routing_id(), |
| + history_length, |
| + minimum_page_id)); |
| } |
| void TabContents::Stop() { |