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

Issue 11360233: Ensure that favicons always have 1x representation regardless of whether the platform supports it (Closed)

Created:
8 years, 1 month ago by pkotwicz
Modified:
8 years, 1 month ago
CC:
chromium-reviews, browser-components-watch_chromium.org, rohitrao (ping after 24h)
Visibility:
Public.

Description

This CL ensures that favicons always 1) Stores a 1x representation in history 2) Returns a 1x representation upon calling FaviconService::GetFaviconImageForURL() such that the 1x favicon can be pushed to sync. BUG=160503 Test=Manual, see instructions below 1) Go to http://www.corp.google.com/~pkotwicz/favicon_small_big/test.html on an iOS device and bookmark it. On the iOS device, the favicon should be red. 2) On a windows device, make sure that the favicon which is received via sync is blue Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168079 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168233

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -71 lines) Patch
M chrome/browser/chromeos/login/helper.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt.cc View 1 2 3 4 1 chunk +3 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_uninstall_dialog.cc View 1 2 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui.cc View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/favicon/favicon_handler.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/favicon/favicon_service.h View 5 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/favicon/favicon_service.cc View 1 7 chunks +13 lines, -23 lines 0 comments Download
M chrome/browser/favicon/favicon_util.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/favicon/favicon_util.cc View 1 2 3 2 chunks +25 lines, -1 line 0 comments Download
M ui/base/layout.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
pkotwicz
noyau@, can you please take a look in terms of the general approach before I ...
8 years, 1 month ago (2012-11-13 21:14:07 UTC) #1
noyau (Ping after 24h)
On 2012/11/13 21:14:07, pkotwicz wrote: > noyau@, can you please take a look in terms ...
8 years, 1 month ago (2012-11-14 10:02:44 UTC) #2
pkotwicz
I will write a different CL for the perf problem.
8 years, 1 month ago (2012-11-14 14:49:05 UTC) #3
pkotwicz
sky@, can you please take a look? This CL removes 1x from the list of ...
8 years, 1 month ago (2012-11-15 17:10:07 UTC) #4
sky
https://codereview.chromium.org/11360233/diff/5001/chrome/browser/favicon/favicon_util.cc File chrome/browser/favicon/favicon_util.cc (right): https://codereview.chromium.org/11360233/diff/5001/chrome/browser/favicon/favicon_util.cc#newcode17 chrome/browser/favicon/favicon_util.cc:17: static std::vector<ui::ScaleFactor>* favicon_scale_factors = Is it really worth caching ...
8 years, 1 month ago (2012-11-15 18:14:54 UTC) #5
pkotwicz
Good point. Removed the caching.
8 years, 1 month ago (2012-11-15 18:47:57 UTC) #6
sky
LGTM
8 years, 1 month ago (2012-11-15 19:20:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/11360233/12001
8 years, 1 month ago (2012-11-15 20:23:59 UTC) #8
commit-bot: I haz the power
Change committed as 168079
8 years, 1 month ago (2012-11-15 23:41:11 UTC) #9
noyau (Ping after 24h)
https://chromiumcodereview.appspot.com/11360233/diff/12001/ui/base/layout.cc File ui/base/layout.cc (right): https://chromiumcodereview.appspot.com/11360233/diff/12001/ui/base/layout.cc#newcode89 ui/base/layout.cc:89: supported_scale_factors->push_back(SCALE_FACTOR_200P); Wow, this is now broken. On non retina ...
8 years, 1 month ago (2012-11-15 23:59:46 UTC) #10
pkotwicz
Relanding in order to properly add SCALE_FACTOR_100P for non retina iOS devices.
8 years, 1 month ago (2012-11-16 15:26:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/11360233/12004
8 years, 1 month ago (2012-11-16 15:27:11 UTC) #12
commit-bot: I haz the power
8 years, 1 month ago (2012-11-16 17:25:44 UTC) #13
Change committed as 168233

Powered by Google App Engine
This is Rietveld 408576698