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

Issue 147145: Fix: Certain redirections remove sites from the history... (Closed)

Created:
11 years, 6 months ago by Yuzo
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Base URL:
svn://chrome-svn.corp.google.com/chrome/trunk/src/
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19708

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -49 lines) Patch
M chrome/browser/autocomplete/history_contents_provider_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_url_provider_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_model_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history.h View 1 2 3 4 5 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/history/history.cc View 1 2 3 4 5 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 5 3 chunks +59 lines, -2 lines 0 comments Download
M chrome/browser/history/history_marshaling.h View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/history/history_querying_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 4 5 14 chunks +20 lines, -15 lines 0 comments Download
M chrome/browser/search_engines/template_url_model.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_model_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/navigation_controller.h View 1 2 3 4 5 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/navigation_controller.cc View 1 2 3 4 5 6 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/tools/profiles/generate_profile.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Yuzo
Hi, Brett, Can you review this? Yuzo
11 years, 6 months ago (2009-06-25 10:29:36 UTC) #1
Yuzo
On 2009/06/25 10:29:36, yuzo wrote: > Hi, Brett, > > Can you review this? > ...
11 years, 5 months ago (2009-06-29 04:50:56 UTC) #2
brettw
Sorry I lost this patch. We should be sure to get a unit test for ...
11 years, 5 months ago (2009-06-29 23:52:54 UTC) #3
brettw
Let me try to direct you in a good direction: Probably the best place for ...
11 years, 5 months ago (2009-06-29 23:57:25 UTC) #4
Yuzo
Brett, Thank you for the detailed comment. I've added a test to history_backend_unittest.cc and removed ...
11 years, 5 months ago (2009-06-30 08:13:04 UTC) #5
brettw
LGTM with a few minor comments. http://codereview.chromium.org/147145/diff/3031/2021 File chrome/browser/history/history_backend_unittest.cc (right): http://codereview.chromium.org/147145/diff/3031/2021#newcode77 Line 77: void AddClientRedirectChain(const ...
11 years, 5 months ago (2009-06-30 17:34:33 UTC) #6
Yuzo
11 years, 5 months ago (2009-07-01 01:56:33 UTC) #7
Brett,

Thank you very much for your review.
I'll submit this after confirming gcl try still succeeds.

Yuzo

http://codereview.chromium.org/147145/diff/3031/2021
File chrome/browser/history/history_backend_unittest.cc (right):

http://codereview.chromium.org/147145/diff/3031/2021#newcode77
Line 77: void AddClientRedirectChain(const GURL& url1, const GURL& url2,
On 2009/06/30 17:34:33, brettw wrote:
> The function arguments should always line up, so align the wrapped ones to the
(
> on the previous line.
> 
> Can you also add a comment for this function describing what it does?

Fixed the alignment and added the comment.

http://codereview.chromium.org/147145/diff/3031/2012
File chrome/browser/tab_contents/navigation_controller.h (right):

http://codereview.chromium.org/147145/diff/3031/2012#newcode406
Line 406: void RendererDidNavigateToNewPage(
On 2009/06/30 17:34:33, brettw wrote:
> Can you add another block to this comment saying something like "The functions
> taking |did_replace_entry| will fill into the given variable whether the last
> entry has been replaced or not. See LoadCommittedDetails.did_replace_entry."

Done.

Powered by Google App Engine
This is Rietveld 408576698