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

Issue 10802066: Adds support for saving favicon size into history database. (Closed)

Created:
8 years, 5 months ago by pkotwicz
Modified:
8 years, 3 months ago
Reviewers:
michaelbai, stevenjb, sky
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, ncarter (slow), mihaip-chromium-reviews_chromium.org, akalin, estade+watch_chromium.org, Raghu Simha, Aaron Boodman, brettw-cc_chromium.org, gbillock+watch_chromium.org, smckay+watch_chromium.org, tim (not reviewing), Nico
Visibility:
Public.

Description

Modifies history backend to be able to take advantage of storing the pixel size of favicons into the database. Changed FaviconData to allow retrieving favicon bitmaps for multiple pixel sizes from the database simultaneously. Added History::GetFavicons() and History::GetFaviconsForURL() to do this. Changed History::SetFavicon() to History::SetFavicons() such that multiple favicon bitmaps for a page URL can be set simultaneously. BUG=138553 TEST=ThumbnailDatabaseTest.*, HistoryBackendTest.* Depends on http://codereview.chromium.org/10815068 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155645

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 10

Patch Set 7 : Changes as requested by Sky and stevenjb #

Total comments: 13

Patch Set 8 : Changes as requested by stevenjb #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 16

Patch Set 11 : #

Total comments: 5

Patch Set 12 : Changes as requested #

Total comments: 15

Patch Set 13 : Changes as requested #

Patch Set 14 : Updated comment for History::SetFavicons #

Total comments: 30

Patch Set 15 : #

Patch Set 16 : Nicer diff #

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1828 lines, -543 lines) Patch
M chrome/browser/favicon/favicon_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +65 lines, -30 lines 0 comments Download
M chrome/browser/history/android/android_provider_backend_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +32 lines, -8 lines 0 comments Download
M chrome/browser/history/history.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +137 lines, -31 lines 0 comments Download
M chrome/browser/history/history.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +40 lines, -32 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +154 lines, -60 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 9 chunks +385 lines, -180 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 10 chunks +785 lines, -183 lines 0 comments Download
M chrome/browser/history/history_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/history/history_types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/history/select_favicon_frames.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +26 lines, -3 lines 0 comments Download
M chrome/browser/history/select_favicon_frames.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +52 lines, -4 lines 0 comments Download
M chrome/browser/history/thumbnail_database.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/history/thumbnail_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +84 lines, -3 lines 0 comments Download
M chrome/browser/history/thumbnail_database_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +9 lines, -7 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
pkotwicz
Adds support for saving favicon size into history database. In this CL the requested size ...
8 years, 5 months ago (2012-07-25 19:33:58 UTC) #1
stevenjb
I want to look at the history changes in more detail, but a little initial ...
8 years, 4 months ago (2012-07-30 23:58:16 UTC) #2
stevenjb
http://codereview.chromium.org/10802066/diff/9004/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): http://codereview.chromium.org/10802066/diff/9004/chrome/browser/history/history_backend.cc#newcode1948 chrome/browser/history/history_backend.cc:1948: if (closest_pixel_size.GetArea() < desired_pixel_size.GetArea() && Area may not be ...
8 years, 4 months ago (2012-08-01 00:00:31 UTC) #3
pkotwicz
http://codereview.chromium.org/10802066/diff/9004/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): http://codereview.chromium.org/10802066/diff/9004/chrome/browser/history/history_backend.cc#newcode1948 chrome/browser/history/history_backend.cc:1948: if (closest_pixel_size.GetArea() < desired_pixel_size.GetArea() && Agree http://codereview.chromium.org/10802066/diff/9004/chrome/browser/history/history_backend.cc#newcode2095 chrome/browser/history/history_backend.cc:2095: // ...
8 years, 4 months ago (2012-08-02 19:47:52 UTC) #4
pkotwicz
Finished implementing the design suggested by Scott. Sorry for the delay. Steven and sky, can ...
8 years, 4 months ago (2012-08-15 20:43:47 UTC) #5
Nico
I didn't look at the code. A few questions about the design (for you, or ...
8 years, 4 months ago (2012-08-15 20:56:58 UTC) #6
pkotwicz
Nico, to answer your question, this patch along with http://codereview.chromium.org/10815068/ implement support for having multiple ...
8 years, 4 months ago (2012-08-15 21:39:52 UTC) #7
stevenjb
Some feedback, mostly nits. I'm not familiar with the history/ code, so will mostly rely ...
8 years, 4 months ago (2012-08-15 22:59:18 UTC) #8
pkotwicz
Fixed nits as per Steven http://codereview.chromium.org/10802066/diff/12003/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): http://codereview.chromium.org/10802066/diff/12003/chrome/browser/history/history_backend.cc#newcode2178 chrome/browser/history/history_backend.cc:2178: if (desired_pixel_size) { I ...
8 years, 4 months ago (2012-08-16 02:58:36 UTC) #9
sky
I'm going to hold off until the other review lands, then I'll look at this ...
8 years, 4 months ago (2012-08-16 16:23:57 UTC) #10
stevenjb
Still wrapping my head around the history backend code, but so far that looks OK ...
8 years, 4 months ago (2012-08-20 17:20:27 UTC) #11
pkotwicz
Merged this CL with changes in previous CL. Removed methods in history service which get ...
8 years, 4 months ago (2012-08-21 16:40:41 UTC) #12
pkotwicz
Scott, can you take a look when you have time?
8 years, 4 months ago (2012-08-21 16:41:25 UTC) #13
sky
I got hung up on the structures you're creating. Seems like they should better match ...
8 years, 4 months ago (2012-08-21 20:16:56 UTC) #14
pkotwicz
http://codereview.chromium.org/10802066/diff/19006/chrome/browser/history/history_types.h File chrome/browser/history/history_types.h (right): http://codereview.chromium.org/10802066/diff/19006/chrome/browser/history/history_types.h#newcode833 chrome/browser/history/history_types.h:833: bool expired; Thanks for the suggestion Scott. From looking ...
8 years, 4 months ago (2012-08-22 15:32:10 UTC) #15
pkotwicz
Scott can you give me early feedback on HistoryBackend::GetFaviconFromDB HistoryBackend::GetFaviconDataForBestMatch and how select_favicon_frames is used?
8 years, 4 months ago (2012-08-23 23:12:56 UTC) #16
sky
http://codereview.chromium.org/10802066/diff/25001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): http://codereview.chromium.org/10802066/diff/25001/chrome/browser/history/history_backend.cc#newcode2141 chrome/browser/history/history_backend.cc:2141: std::vector<FaviconID> favicon_ids; Add a description as to what this ...
8 years, 4 months ago (2012-08-24 16:35:41 UTC) #17
sky
These comments are only from the two functions you asked me to look at. -Scott ...
8 years, 4 months ago (2012-08-24 16:36:02 UTC) #18
michaelbai
It seemed that you didn't run the Android related tests, Could you make sure they ...
8 years, 3 months ago (2012-08-28 15:23:16 UTC) #19
pkotwicz
Changes as requested. Scott can you please take a look? I still need to update ...
8 years, 3 months ago (2012-09-04 16:18:34 UTC) #20
sky
http://codereview.chromium.org/10802066/diff/25001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): http://codereview.chromium.org/10802066/diff/25001/chrome/browser/history/history_backend.cc#newcode2183 chrome/browser/history/history_backend.cc:2183: best_bitmap_ids.swap(candidate_bitmap_ids); On 2012/09/04 16:18:36, pkotwicz wrote: > Yes this ...
8 years, 3 months ago (2012-09-04 17:18:07 UTC) #21
sky
http://codereview.chromium.org/10802066/diff/35001/chrome/browser/history/history.cc File chrome/browser/history/history.cc (right): http://codereview.chromium.org/10802066/diff/35001/chrome/browser/history/history.cc#newcode498 chrome/browser/history/history.cc:498: int desired_size_in_dip, What is desired_size_in_dip? Why is it an ...
8 years, 3 months ago (2012-09-04 17:22:31 UTC) #22
pkotwicz
Changes as requested. Updated comments in history.h. http://codereview.chromium.org/10802066/diff/35001/chrome/browser/history/history.cc File chrome/browser/history/history.cc (right): http://codereview.chromium.org/10802066/diff/35001/chrome/browser/history/history.cc#newcode498 chrome/browser/history/history.cc:498: int desired_size_in_dip, ...
8 years, 3 months ago (2012-09-04 19:47:54 UTC) #23
sky
http://codereview.chromium.org/10802066/diff/38003/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): http://codereview.chromium.org/10802066/diff/38003/chrome/browser/favicon/favicon_service.cc#newcode106 chrome/browser/favicon/favicon_service.cc:106: icon_urls, icon_type, gfx::kFaviconSize, ui::GetSupportedScaleFactors()); > 80 http://codereview.chromium.org/10802066/diff/38003/chrome/browser/favicon/select_favicon_frames.cc File chrome/browser/favicon/select_favicon_frames.cc ...
8 years, 3 months ago (2012-09-04 20:52:28 UTC) #24
michaelbai
http://codereview.chromium.org/10802066/diff/35001/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): http://codereview.chromium.org/10802066/diff/35001/chrome/browser/favicon/favicon_service.cc#newcode213 chrome/browser/favicon/favicon_service.cc:213: // TODO(pkotwicz): Pass in real pixel size to SetFavicons. ...
8 years, 3 months ago (2012-09-04 21:18:53 UTC) #25
pkotwicz
http://codereview.chromium.org/10802066/diff/35001/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): http://codereview.chromium.org/10802066/diff/35001/chrome/browser/favicon/favicon_service.cc#newcode213 chrome/browser/favicon/favicon_service.cc:213: // TODO(pkotwicz): Pass in real pixel size to SetFavicons. ...
8 years, 3 months ago (2012-09-04 22:40:54 UTC) #26
sky
http://codereview.chromium.org/10802066/diff/38003/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): http://codereview.chromium.org/10802066/diff/38003/chrome/browser/history/history_backend.cc#newcode2053 chrome/browser/history/history_backend.cc:2053: if (icon_type_out > selected_icon_type) { This is subtle enough ...
8 years, 3 months ago (2012-09-05 00:15:50 UTC) #27
michaelbai
https://chromiumcodereview.appspot.com/10802066/diff/38003/chrome/browser/history/history_backend.h File chrome/browser/history/history_backend.h (right): https://chromiumcodereview.appspot.com/10802066/diff/38003/chrome/browser/history/history_backend.h#newcode651 chrome/browser/history/history_backend.h:651: // SetFavicons are valid. Could you add comment for ...
8 years, 3 months ago (2012-09-05 19:08:17 UTC) #28
pkotwicz
Added a whole bunch of additional comments. Changes as requested. If I have not replied ...
8 years, 3 months ago (2012-09-05 22:39:25 UTC) #29
pkotwicz
8 years, 3 months ago (2012-09-05 22:40:55 UTC) #30
sky
LGTM
8 years, 3 months ago (2012-09-05 22:58:12 UTC) #31
michaelbai
Hi Sky, Currently the favicon was selected and resized by desired_size_in_dip and desired_scale_factors in two ...
8 years, 3 months ago (2012-09-05 23:24:59 UTC) #32
sky
On Wed, Sep 5, 2012 at 4:24 PM, <michaelbai@chromium.org> wrote: > Hi Sky, > > ...
8 years, 3 months ago (2012-09-06 04:11:21 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10802066/36019
8 years, 3 months ago (2012-09-09 19:06:43 UTC) #34
commit-bot: I haz the power
8 years, 3 months ago (2012-09-09 23:26:41 UTC) #35
Change committed as 155645

Powered by Google App Engine
This is Rietveld 408576698