Index: chrome/browser/history/history_tab_helper.cc |
diff --git a/chrome/browser/history/history_tab_helper.cc b/chrome/browser/history/history_tab_helper.cc |
index 8a40bf4eeb3b5ddc3464d5ee9b7d9b1ce52b410f..c53508f8cd1aba03f2a20110d0799c833054c9cd 100644 |
--- a/chrome/browser/history/history_tab_helper.cc |
+++ b/chrome/browser/history/history_tab_helper.cc |
@@ -54,11 +54,12 @@ void HistoryTabHelper::UpdateHistoryPageTitle(const NavigationEntry& entry) { |
history::HistoryAddPageArgs |
HistoryTabHelper::CreateHistoryAddPageArgs( |
const GURL& virtual_url, |
+ int32 page_id, |
base::Time timestamp, |
bool did_replace_entry, |
const content::FrameNavigateParams& params) { |
history::HistoryAddPageArgs add_page_args( |
- params.url, timestamp, web_contents(), params.page_id, |
+ params.url, timestamp, web_contents(), page_id, |
params.referrer.url, params.redirects, params.transition, |
history::SOURCE_BROWSED, did_replace_entry); |
if (ui::PageTransitionIsMainFrame(params.transition) && |
@@ -98,8 +99,11 @@ void HistoryTabHelper::DidNavigateAnyFrame( |
// the WebContents' URL getter does. |
const history::HistoryAddPageArgs& add_page_args = |
CreateHistoryAddPageArgs( |
- web_contents()->GetURL(), details.entry->GetTimestamp(), |
- details.did_replace_entry, params); |
+ web_contents()->GetURL(), |
+ details.entry->GetPageID(), |
+ details.entry->GetTimestamp(), |
+ details.did_replace_entry, |
+ params); |
prerender::PrerenderManager* prerender_manager = |
prerender::PrerenderManagerFactory::GetForProfile( |