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

Issue 2234393002: Marking last_visited date for bookmarks created from an open tab (Closed)

Created:
4 years, 4 months ago by jkrcal
Modified:
4 years, 4 months ago
Reviewers:
Marc Treib
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Marking last_visited date for bookmarks created from an open tab Previously, last_visited date was noted only when a (previously bookmarked) page is opened. This CL notes the date also when a new bookmark is created (while the URL of the new bookmark is opened in some browser tab). Previously, we used creation date of a bookmark as a fallback date when last_visited info is missing. This does not work as bookmarks created by sync get the time they are synced to the device as their creation date. Thus, on a freshly synced device, one gets all bookmarks as recently visited. This CL also removes the fallback. Lastly, the CL also adds marking last_visited dates upon server-side redirects. E.g. if you have a bit.ly/foo link to foo.com and bookmark foo.com, going there through bit.ly/foo also marks this bookmark as visited. Previously only the bit.ly/foo URL is checked. BUG=631474 Committed: https://crrev.com/bdf25cacddb2b0e7a3da28199fb57a7d9407eb28 Cr-Commit-Position: refs/heads/master@{#411331}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Handling also server-side redirects #

Total comments: 9

Patch Set 3 : Marc's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -10 lines) Patch
M chrome/browser/ntp_snippets/bookmark_last_visit_updater.h View 1 2 3 chunks +39 lines, -1 line 0 comments Download
M chrome/browser/ntp_snippets/bookmark_last_visit_updater.cc View 1 2 2 chunks +37 lines, -2 lines 0 comments Download
M components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/ntp_snippets/bookmarks/bookmark_last_visit_utils.cc View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
jkrcal
Marc, PTAL!
4 years, 4 months ago (2016-08-11 12:24:29 UTC) #4
Marc Treib
https://codereview.chromium.org/2234393002/diff/1/components/ntp_snippets/bookmarks/bookmark_last_visit_utils.cc File components/ntp_snippets/bookmarks/bookmark_last_visit_utils.cc (left): https://codereview.chromium.org/2234393002/diff/1/components/ntp_snippets/bookmarks/bookmark_last_visit_utils.cc#oldcode65 components/ntp_snippets/bookmarks/bookmark_last_visit_utils.cc:65: // Use creation date if no last visit info ...
4 years, 4 months ago (2016-08-11 13:03:44 UTC) #5
jkrcal
Thanks a lot! PTAL, again. https://codereview.chromium.org/2234393002/diff/1/components/ntp_snippets/bookmarks/bookmark_last_visit_utils.cc File components/ntp_snippets/bookmarks/bookmark_last_visit_utils.cc (left): https://codereview.chromium.org/2234393002/diff/1/components/ntp_snippets/bookmarks/bookmark_last_visit_utils.cc#oldcode65 components/ntp_snippets/bookmarks/bookmark_last_visit_utils.cc:65: // Use creation date ...
4 years, 4 months ago (2016-08-11 13:59:27 UTC) #8
Marc Treib
lgtm https://codereview.chromium.org/2234393002/diff/20001/chrome/browser/ntp_snippets/bookmark_last_visit_updater.cc File chrome/browser/ntp_snippets/bookmark_last_visit_updater.cc (right): https://codereview.chromium.org/2234393002/diff/20001/chrome/browser/ntp_snippets/bookmark_last_visit_updater.cc#newcode63 chrome/browser/ntp_snippets/bookmark_last_visit_updater.cc:63: if (new_bookmark_url == web_contents_->GetLastCommittedURL()) { On 2016/08/11 13:59:26, ...
4 years, 4 months ago (2016-08-11 14:06:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2234393002/40001
4 years, 4 months ago (2016-08-11 15:04:34 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-11 15:08:23 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 15:09:45 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bdf25cacddb2b0e7a3da28199fb57a7d9407eb28
Cr-Commit-Position: refs/heads/master@{#411331}

Powered by Google App Engine
This is Rietveld 408576698