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

Issue 335233003: Convert ui::ScaleFactor -> float in favicon/history code (Closed)

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

Description

Convert ui::ScaleFactor -> float in favicon/history code First stop to fix favicon for fractional scale factor. I'll convert the rest of ui::ScaleFactor in 38 BUG=376367, 381601 R=pkotwicz@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278853

Patch Set 1 : rebase #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : #

Patch Set 4 : rebase #

Total comments: 22

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : fix size_t #

Patch Set 8 : fix size_t #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -241 lines) Patch
M chrome/browser/extensions/extension_web_ui.cc View 1 2 3 4 5 1 chunk +9 lines, -10 lines 0 comments Download
M chrome/browser/favicon/favicon_handler.cc View 1 2 3 4 6 chunks +8 lines, -11 lines 2 comments Download
M chrome/browser/favicon/favicon_service.h View 1 2 3 4 7 chunks +16 lines, -16 lines 0 comments Download
M chrome/browser/favicon/favicon_service.cc View 1 2 3 7 chunks +21 lines, -25 lines 0 comments Download
M chrome/browser/history/select_favicon_frames_unittest.cc View 1 2 3 15 chunks +30 lines, -31 lines 0 comments Download
M chrome/browser/sync/test/integration/bookmarks_helper.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 1 chunk +18 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source.cc View 1 2 3 4 6 chunks +21 lines, -19 lines 0 comments Download
M chrome/browser/web_applications/update_shortcut_worker_win.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/common/favicon/favicon_url_parser.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/favicon/favicon_url_parser.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/favicon/favicon_url_parser_unittest.cc View 8 chunks +9 lines, -9 lines 0 comments Download
M components/favicon_base/favicon_util.h View 1 2 3 4 5 7 2 chunks +6 lines, -6 lines 0 comments Download
M components/favicon_base/favicon_util.cc View 1 2 3 4 8 chunks +37 lines, -45 lines 0 comments Download
M components/favicon_base/select_favicon_frames.h View 1 2 3 4 5 6 7 3 chunks +12 lines, -14 lines 0 comments Download
M components/favicon_base/select_favicon_frames.cc View 1 2 3 6 chunks +20 lines, -27 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
oshima
6 years, 6 months ago (2014-06-17 00:31:59 UTC) #1
pkotwicz
I am looking into how hard it is to pass in the desired pixel sizes ...
6 years, 6 months ago (2014-06-17 17:01:41 UTC) #2
oshima
On 2014/06/17 17:01:41, pkotwicz wrote: > I am looking into how hard it is to ...
6 years, 6 months ago (2014-06-17 17:10:08 UTC) #3
pkotwicz
It turns out to be pretty easy to do. I am going to post a ...
6 years, 6 months ago (2014-06-17 20:04:59 UTC) #4
pkotwicz
It turns out to be pretty easy to do. I am going to post a ...
6 years, 6 months ago (2014-06-17 20:05:34 UTC) #5
pkotwicz
It turns out to be pretty easy to do. I am going to post a ...
6 years, 6 months ago (2014-06-17 20:05:37 UTC) #6
pkotwicz
Some initial comments. Correct me if I am wrong. This CL will not make favicons ...
6 years, 6 months ago (2014-06-18 15:46:34 UTC) #7
oshima
Yes, I purposely made this CL not to change the behavior. I actually have additional ...
6 years, 6 months ago (2014-06-18 17:17:20 UTC) #8
oshima
On 2014/06/18 17:17:20, oshima wrote: > Yes, I purposely made this CL not to change ...
6 years, 6 months ago (2014-06-18 21:24:37 UTC) #9
pkotwicz
Ping me when you rebase the CL and I will look at it then. Just ...
6 years, 6 months ago (2014-06-19 21:18:28 UTC) #10
oshima
uploaded rebased patch. ptal
6 years, 6 months ago (2014-06-19 23:23:30 UTC) #11
pkotwicz
Looks good. https://codereview.chromium.org/335233003/diff/180001/chrome/browser/extensions/extension_web_ui.cc File chrome/browser/extensions/extension_web_ui.cc (right): https://codereview.chromium.org/335233003/diff/180001/chrome/browser/extensions/extension_web_ui.cc#newcode427 chrome/browser/extensions/extension_web_ui.cc:427: const std::vector<float>& favicon_scales = favicon_base::GetFaviconScales(); This should ...
6 years, 6 months ago (2014-06-20 00:35:41 UTC) #12
oshima
https://codereview.chromium.org/335233003/diff/180001/chrome/browser/extensions/extension_web_ui.cc File chrome/browser/extensions/extension_web_ui.cc (right): https://codereview.chromium.org/335233003/diff/180001/chrome/browser/extensions/extension_web_ui.cc#newcode427 chrome/browser/extensions/extension_web_ui.cc:427: const std::vector<float>& favicon_scales = favicon_base::GetFaviconScales(); On 2014/06/20 00:35:41, pkotwicz ...
6 years, 6 months ago (2014-06-20 04:16:34 UTC) #13
pkotwicz
LGTM https://codereview.chromium.org/335233003/diff/180001/components/favicon_base/favicon_util.h File components/favicon_base/favicon_util.h (right): https://codereview.chromium.org/335233003/diff/180001/components/favicon_base/favicon_util.h#newcode32 components/favicon_base/favicon_util.h:32: // a favicon of size favicon_size (in DIPs) ...
6 years, 6 months ago (2014-06-20 14:22:37 UTC) #14
oshima
https://codereview.chromium.org/335233003/diff/180001/components/favicon_base/favicon_util.h File components/favicon_base/favicon_util.h (right): https://codereview.chromium.org/335233003/diff/180001/components/favicon_base/favicon_util.h#newcode32 components/favicon_base/favicon_util.h:32: // a favicon of size favicon_size (in DIPs) at ...
6 years, 6 months ago (2014-06-20 15:21:50 UTC) #15
oshima
sky -> chrome/ owners
6 years, 6 months ago (2014-06-20 15:23:22 UTC) #16
sky
https://codereview.chromium.org/335233003/diff/340001/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): https://codereview.chromium.org/335233003/diff/340001/chrome/browser/favicon/favicon_handler.cc#newcode129 chrome/browser/favicon/favicon_handler.cc:129: int edge_size_in_pixel = std::ceil(desired_size_in_dip * favicon_scales[i]); Why the change ...
6 years, 6 months ago (2014-06-20 19:31:16 UTC) #17
oshima
https://codereview.chromium.org/335233003/diff/340001/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): https://codereview.chromium.org/335233003/diff/340001/chrome/browser/favicon/favicon_handler.cc#newcode129 chrome/browser/favicon/favicon_handler.cc:129: int edge_size_in_pixel = std::ceil(desired_size_in_dip * favicon_scales[i]); On 2014/06/20 19:31:16, ...
6 years, 6 months ago (2014-06-20 19:59:46 UTC) #18
sky
Fair enough, LGTM
6 years, 6 months ago (2014-06-20 22:55:12 UTC) #19
oshima
6 years, 6 months ago (2014-06-20 23:21:13 UTC) #20
Message was sent while issue was closed.
Committed patchset #8 manually as r278853 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698