From befd8d82ec47c02d6b17d9fa7b6c1f3bb703150f Mon Sep 17 00:00:00 2001 From: "yuzo@chromium.org" Date: Wed, 1 Jul 2009 04:51:47 +0000 Subject: Fix: Certain redirections remove sites from the history Currently, PageTransition::CHAIN_END flag is removed from a History database entry for a redirect source, even when the redirect is user initiated. This change prevents the flag removal for user-initiated redirects. TEST=Open http://www.google.com/ig and click on tabs multiple times. Without this change, only the last tab clicked appears in the History page (CTRL+H). With this change, all the tabs should appear. TESTED=gcl try, manually BUG=11355 Review URL: http://codereview.chromium.org/147145 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19708 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/history/history_marshaling.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'chrome/browser/history/history_marshaling.h') diff --git a/chrome/browser/history/history_marshaling.h b/chrome/browser/history/history_marshaling.h index bf558c8..a6f449c 100644 --- a/chrome/browser/history/history_marshaling.h +++ b/chrome/browser/history/history_marshaling.h @@ -26,14 +26,16 @@ class HistoryAddPageArgs : public base::RefCounted { int32 arg_page_id, const GURL& arg_referrer, const HistoryService::RedirectList& arg_redirects, - PageTransition::Type arg_transition) + PageTransition::Type arg_transition, + bool arg_did_replace_entry) : url(arg_url), time(arg_time), id_scope(arg_id_scope), page_id(arg_page_id), referrer(arg_referrer), redirects(arg_redirects), - transition(arg_transition) { + transition(arg_transition), + did_replace_entry(arg_did_replace_entry){ } GURL url; @@ -45,6 +47,7 @@ class HistoryAddPageArgs : public base::RefCounted { GURL referrer; HistoryService::RedirectList redirects; PageTransition::Type transition; + bool did_replace_entry; private: DISALLOW_EVIL_CONSTRUCTORS(HistoryAddPageArgs); -- cgit v1.1