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

Issue 336423006: Pass in a set of requested favicon pixel sizes to the HistoryService (Closed)

Created:
6 years, 6 months ago by pkotwicz
Modified:
6 years, 6 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, browser-components-watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Pass in a set of requested favicon pixel sizes to the HistoryService instead of a desired size in DIP and a set of desired scale factors. BUG=None TEST=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278640

Patch Set 1 : #

Total comments: 3

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -367 lines) Patch
M chrome/browser/favicon/favicon_service.h View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/favicon/favicon_service.cc View 1 2 15 chunks +70 lines, -58 lines 0 comments Download
M chrome/browser/history/history_backend.h View 5 chunks +22 lines, -30 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 9 chunks +17 lines, -29 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 34 chunks +92 lines, -105 lines 0 comments Download
M chrome/browser/history/history_service.h View 4 chunks +24 lines, -30 lines 0 comments Download
M chrome/browser/history/history_service.cc View 8 chunks +8 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.cc View 1 2 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 4 chunks +23 lines, -8 lines 0 comments Download
M chrome/browser/web_applications/update_shortcut_worker_win.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M components/favicon_base/select_favicon_frames.h View 1 2 2 chunks +13 lines, -13 lines 0 comments Download
M components/favicon_base/select_favicon_frames.cc View 1 2 9 chunks +68 lines, -63 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
pkotwicz
Scott, can you please take a look? I was motivated to write this CL as ...
6 years, 6 months ago (2014-06-18 04:10:54 UTC) #1
oshima
Thank you for doing this. I'm actually wondering if ChromeWebUIController should keep using scales instead. ...
6 years, 6 months ago (2014-06-18 07:03:03 UTC) #2
oshima
On 2014/06/18 07:03:03, oshima wrote: > Thank you for doing this. > > I'm actually ...
6 years, 6 months ago (2014-06-18 16:04:31 UTC) #3
pkotwicz
I have addressed Oshima's comments. Oshima can you please take another look?
6 years, 6 months ago (2014-06-18 17:31:05 UTC) #4
oshima
On 2014/06/18 16:04:31, oshima wrote: > On 2014/06/18 07:03:03, oshima wrote: > > Thank you ...
6 years, 6 months ago (2014-06-18 17:36:40 UTC) #5
pkotwicz
I think that it is actually simpler not to use scale factor in ChromeWebUIController. The ...
6 years, 6 months ago (2014-06-18 18:00:51 UTC) #6
oshima
lgtm Ok, after reading through the code, I think this is more correct thing to ...
6 years, 6 months ago (2014-06-18 18:17:03 UTC) #7
pkotwicz
Scott for OWNERS https://codereview.chromium.org/336423006/diff/60001/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc File chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc (right): https://codereview.chromium.org/336423006/diff/60001/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc#newcode627 chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc:627: bitmap_result.pixel_size = candidate_sizes[selected_index]; Yes, we do ...
6 years, 6 months ago (2014-06-18 18:38:50 UTC) #8
pkotwicz
Correction, we do resizing in FaviconService::RunFaviconRawBitmapCallbackWithBitmapResults() and FaviconService::RunFaviconImageCallbackWithBitmapResults()
6 years, 6 months ago (2014-06-18 18:39:56 UTC) #9
sky
https://codereview.chromium.org/336423006/diff/60001/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): https://codereview.chromium.org/336423006/diff/60001/chrome/browser/favicon/favicon_service.cc#newcode124 chrome/browser/favicon/favicon_service.cc:124: static_cast<int>(desired_size_in_dip * desired_scale + 0.5); Why do add .5 ...
6 years, 6 months ago (2014-06-18 22:16:51 UTC) #10
pkotwicz
Scott, can you please take another look? https://codereview.chromium.org/336423006/diff/60001/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): https://codereview.chromium.org/336423006/diff/60001/chrome/browser/favicon/favicon_service.cc#newcode124 chrome/browser/favicon/favicon_service.cc:124: static_cast<int>(desired_size_in_dip * ...
6 years, 6 months ago (2014-06-18 23:32:02 UTC) #11
sky
LGTM
6 years, 6 months ago (2014-06-19 15:05:55 UTC) #12
pkotwicz
The CQ bit was checked by pkotwicz@chromium.org
6 years, 6 months ago (2014-06-19 20:39:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/336423006/140001
6 years, 6 months ago (2014-06-19 20:41:50 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 01:56:42 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-20 02:02:35 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_clang_dbg/builds/24653)
6 years, 6 months ago (2014-06-20 02:02:36 UTC) #17
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 6 months ago (2014-06-20 04:28:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/336423006/140001
6 years, 6 months ago (2014-06-20 04:31:17 UTC) #19
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 07:08:14 UTC) #20
Message was sent while issue was closed.
Change committed as 278640

Powered by Google App Engine
This is Rietveld 408576698