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

Issue 1128343004: Allow favicons for synced bookmarks to expire (Closed)

Created:
5 years, 7 months ago by pkotwicz
Modified:
5 years, 7 months ago
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow favicons for synced bookmarks to expire This CL prevents sync from updating the "last updated time" for bookmark favicons each time that Chrome is started. The "last updated time" determines when the favicon is redownloaded from the web (in case it has been updated). Sync calls HistoryBackend::MergeFavicon() for each bookmark favicon on startup. This CL stops HistoryBackend::MergeFavicon() from updating the "last updated time" when MergeFavicon() is called with the same bitmap data as already stored in the database (no new bitmap data). BUG=481414 TEST=TwoClientBookmarksSyncTest.SC_UpdatingTitleDoesNotUpdateFaviconLastUpdatedTime Committed: https://crrev.com/efec71da0c1b11e520d9962181a617ab32fbb1aa Cr-Commit-Position: refs/heads/master@{#330802}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -2 lines) Patch
M chrome/browser/sync/test/integration/bookmarks_helper.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/bookmarks_helper.cc View 1 3 chunks +55 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_bookmarks_sync_test.cc View 1 2 2 chunks +50 lines, -0 lines 0 comments Download
M components/history/core/browser/history_backend.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/history/core/browser/history_backend.cc View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M components/history/core/browser/history_backend_unittest.cc View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (15 generated)
pkotwicz
zea@ can you please take a look at the new sync integration test? michaelbai@ can ...
5 years, 7 months ago (2015-05-10 02:14:49 UTC) #2
Nicolas Zea
Mostly LG, one question https://codereview.chromium.org/1128343004/diff/80001/chrome/browser/sync/test/integration/bookmarks_helper.cc File chrome/browser/sync/test/integration/bookmarks_helper.cc (right): https://codereview.chromium.org/1128343004/diff/80001/chrome/browser/sync/test/integration/bookmarks_helper.cc#newcode272 chrome/browser/sync/test/integration/bookmarks_helper.cc:272: void ExpireFaviconImpl(Profile* profile, const BookmarkNode* ...
5 years, 7 months ago (2015-05-14 04:08:23 UTC) #10
pkotwicz
Nicolas, can you please take another look? https://codereview.chromium.org/1128343004/diff/80001/chrome/browser/sync/test/integration/bookmarks_helper.cc File chrome/browser/sync/test/integration/bookmarks_helper.cc (right): https://codereview.chromium.org/1128343004/diff/80001/chrome/browser/sync/test/integration/bookmarks_helper.cc#newcode272 chrome/browser/sync/test/integration/bookmarks_helper.cc:272: void ExpireFaviconImpl(Profile* ...
5 years, 7 months ago (2015-05-14 14:54:36 UTC) #12
Nicolas Zea
On 2015/05/14 14:54:36, pkotwicz wrote: > Nicolas, can you please take another look? > > ...
5 years, 7 months ago (2015-05-14 18:11:31 UTC) #13
pkotwicz
We have special logic so that favicons which are associated with bookmarks are never deleted. ...
5 years, 7 months ago (2015-05-14 18:24:28 UTC) #14
Nicolas Zea
Ah right, makes sense. Sync changes LGTM, with one request: Could you update the comment ...
5 years, 7 months ago (2015-05-14 18:27:57 UTC) #15
michaelbai
lgtm, added aruslan@ for double check.
5 years, 7 months ago (2015-05-14 19:08:33 UTC) #17
aruslan
lgtm
5 years, 7 months ago (2015-05-14 20:11:27 UTC) #18
pkotwicz
Scott, can you please take a look? This CL is more important than https://codereview.chromium.org/1133463005/
5 years, 7 months ago (2015-05-14 21:44:26 UTC) #20
sky
Only the history change, right? LGTM, make sure to update any relavent docs. Also, I'm ...
5 years, 7 months ago (2015-05-18 17:15:20 UTC) #21
pkotwicz
I have modified the comment and have added a test in history_backend_unittest.cc I care much ...
5 years, 7 months ago (2015-05-20 20:04:03 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1128343004/200001
5 years, 7 months ago (2015-05-20 20:04:33 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:200001)
5 years, 7 months ago (2015-05-20 21:22:15 UTC) #28
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 21:23:09 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/efec71da0c1b11e520d9962181a617ab32fbb1aa
Cr-Commit-Position: refs/heads/master@{#330802}

Powered by Google App Engine
This is Rietveld 408576698