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

Issue 1098053003: Expire favicon bitmaps when merging from sync and clearing browser history (Closed)

Created:
5 years, 8 months ago by pkotwicz
Modified:
5 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, markusheintz_, browser-components-watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expire favicon bitmaps when merging from sync and clearing browser history As a result of crbug.com/474421, sync sometimes stores incorrect data to the favicons database. This CL: - Expires bookmark favicon bitmaps when history is cleared - Expires the favicon bitmap data if MergeFavicon() overwrites the current favicon bitmap. MergeFavicon is the entry point used by sync to update favicons. MergeFavicon() has other callers but they pass in the page URL as the icon URL. BUG=474613 TEST=ThumbnailDatabaseTest.*, BrowsingDataRemoverTest.* Committed: https://crrev.com/bf4296badb82df64393afcf168302c9bae736d6a Cr-Commit-Position: refs/heads/master@{#326819}

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -6 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 5 chunks +140 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/history/thumbnail_database_unittest.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M components/history/core/browser/history_backend.cc View 1 chunk +5 lines, -1 line 0 comments Download
M components/history/core/browser/thumbnail_database.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/history/core/browser/thumbnail_database.cc View 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
pkotwicz
sky@ PTAL
5 years, 8 months ago (2015-04-21 00:47:42 UTC) #4
pkotwicz
sky@ PTAL
5 years, 8 months ago (2015-04-21 00:47:43 UTC) #5
sky
"Expires bookmark favicon bitmaps when history is cleared" We explicitly decided we did not want ...
5 years, 8 months ago (2015-04-21 13:20:42 UTC) #6
pkotwicz
sky@ can you please take another look? I am expiring but NOT deleting the favicon ...
5 years, 8 months ago (2015-04-21 13:29:25 UTC) #7
pkotwicz
Full disclosure, ExpireHistoryBackend can cause bookmarked favicons to be deleted, but that bug is not ...
5 years, 8 months ago (2015-04-21 13:32:29 UTC) #8
sky
I don't like working around bugs in other code. On Tue, Apr 21, 2015 at ...
5 years, 8 months ago (2015-04-21 23:28:18 UTC) #9
pkotwicz
The code in ThumbnailDatabase::RetainDataForPageUrls() is not working around a bug. It is reasonable for a ...
5 years, 8 months ago (2015-04-22 00:01:18 UTC) #10
sky
Fair enough. There is one use of MergeFavicons from partner_bookmarks_reader. I can't tell if that ...
5 years, 8 months ago (2015-04-23 15:34:49 UTC) #11
pkotwicz
I have updated the CL description for MergeFavicon() partner_bookmarks_reader.cc cannot care about the expiry logic ...
5 years, 8 months ago (2015-04-23 17:51:22 UTC) #12
sky
Ok, LGTM
5 years, 8 months ago (2015-04-23 21:50:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1098053003/30001
5 years, 8 months ago (2015-04-24 15:39:05 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:30001)
5 years, 8 months ago (2015-04-24 16:50:40 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 16:52:28 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/bf4296badb82df64393afcf168302c9bae736d6a
Cr-Commit-Position: refs/heads/master@{#326819}

Powered by Google App Engine
This is Rietveld 408576698