New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 674178 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 681509



Sign in to add a comment

Browsing data removal is too aggresive for bookmark visits.

Project Member Reported by jkrcal@chromium.org, Dec 14 2016

Issue description

When removing browsing history, we remove all last_visit dates in bookmarks and thus all suggestions. This happens irrelevant of the time-period (e.g. "today") selected by the user. This should be fixed.

This was never properly implemented, not a regression.

Patrick, can you please prioritize this bug w.r.t. M57 / M58?
 
Cc: msramek@chromium.org
Components: Privacy

Comment 2 by jkrcal@chromium.org, Dec 20 2016

We record last_visit_dates separately for mobile and for desktop.

Martin:
Currently when clearing data in Chrome on any platform, we clear both the entries. Should we do so or is it enough
 - to clear desktop data when clearing on desktop and
 - to clear mobile data when clearing on mobile?

Comment 3 by battre@chromium.org, Dec 20 2016

Martin is OOO. I suggest to delete the data for both platforms as we also delete the browsing history for both platforms.

Comment 4 by fi...@chromium.org, Dec 22 2016

Cc: tschumann@chromium.org
Labels: -Pri-3 M-57 zine-bookmarks-v1 zine-triaged Pri-2
+ tschumann

Let's aim for M-57. Since this isn't a user visible change, this can also land shortly after FF.
Owner: tschumann@chromium.org
Project Member

Comment 6 by bugdroid1@chromium.org, Jan 10 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/26e30ced5c0018ccada8063ee8b0bcd2fac293af

commit 26e30ced5c0018ccada8063ee8b0bcd2fac293af
Author: tschumann <tschumann@chromium.org>
Date: Tue Jan 10 00:36:47 2017

Respect time range in browsing data removal for last-visited data.

This CL changes the data removal logic in last-visited data to only remove metadata
of nodes with a last-visited data inside the provided time-range.
Previously, that metdata was deleted from all nodes. This had the result that no
bookmarks were present in content suggestions unless they had been visited again.

BUG= 674178 

Review-Url: https://codereview.chromium.org/2616633002
Cr-Commit-Position: refs/heads/master@{#442424}

[modify] https://crrev.com/26e30ced5c0018ccada8063ee8b0bcd2fac293af/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
[modify] https://crrev.com/26e30ced5c0018ccada8063ee8b0bcd2fac293af/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
[modify] https://crrev.com/26e30ced5c0018ccada8063ee8b0bcd2fac293af/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h
[modify] https://crrev.com/26e30ced5c0018ccada8063ee8b0bcd2fac293af/components/ntp_snippets/bookmarks/bookmark_last_visit_utils.cc
[modify] https://crrev.com/26e30ced5c0018ccada8063ee8b0bcd2fac293af/components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h
[modify] https://crrev.com/26e30ced5c0018ccada8063ee8b0bcd2fac293af/components/ntp_snippets/bookmarks/bookmark_last_visit_utils_unittest.cc
[modify] https://crrev.com/26e30ced5c0018ccada8063ee8b0bcd2fac293af/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc

Project Member

Comment 7 by bugdroid1@chromium.org, Jan 12 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/25e7324ca818226f5f68aca6eae4348ae739b247

commit 25e7324ca818226f5f68aca6eae4348ae739b247
Author: tschumann <tschumann@chromium.org>
Date: Thu Jan 12 16:46:42 2017

Add a unit test for the BookmarkSuggestionsProvider.

This is primarily to verify behavior fixed in https://codereview.chromium.org/2616633002/ but also adds tests for more fundamental behavior of the BookmarkSuggestionsProvider.

This CL also moves ContentSuggestionsProvider test doubles out of specific unit tests and into separate targets so that we can reuse them.

BUG= 674178 

Review-Url: https://codereview.chromium.org/2618243004
Cr-Commit-Position: refs/heads/master@{#443260}

[modify] https://crrev.com/25e7324ca818226f5f68aca6eae4348ae739b247/components/ntp_snippets/BUILD.gn
[modify] https://crrev.com/25e7324ca818226f5f68aca6eae4348ae739b247/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
[add] https://crrev.com/25e7324ca818226f5f68aca6eae4348ae739b247/components/ntp_snippets/bookmarks/bookmark_suggestions_provider_unittest.cc
[modify] https://crrev.com/25e7324ca818226f5f68aca6eae4348ae739b247/components/ntp_snippets/content_suggestions_service_unittest.cc
[add] https://crrev.com/25e7324ca818226f5f68aca6eae4348ae739b247/components/ntp_snippets/fake_content_suggestions_provider_observer.cc
[add] https://crrev.com/25e7324ca818226f5f68aca6eae4348ae739b247/components/ntp_snippets/fake_content_suggestions_provider_observer.h
[add] https://crrev.com/25e7324ca818226f5f68aca6eae4348ae739b247/components/ntp_snippets/mock_content_suggestions_provider.cc
[add] https://crrev.com/25e7324ca818226f5f68aca6eae4348ae739b247/components/ntp_snippets/mock_content_suggestions_provider.h
[modify] https://crrev.com/25e7324ca818226f5f68aca6eae4348ae739b247/components/ntp_snippets/remote/remote_suggestions_provider_impl_unittest.cc

Status: Fixed (was: Assigned)
+jkrcal, I believe this is fixed now. Marking as such -- please re-open if you disagree.
Blocking: 681509

Sign in to add a comment