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

Issue 10837090: Change return type of FaviconTabHelper::GetFavicon() to gfx::Image. (Closed)

Created:
8 years, 4 months ago by Nico
Modified:
8 years, 4 months ago
Reviewers:
Robert Sesek, pkotwicz, sky, Jói
CC:
chromium-reviews, jianli, jennb, yoshiki+watch_chromium.org, Dmitry Titov, dcheng, pkotwicz
Visibility:
Public.

Description

Change return type of FaviconTabHelper::GetFavicon() to gfx::Image. No intended behavior change for now. Depends on http://codereview.chromium.org/10832128/ Part of supporting hidpi favicons in the tab strip. BUG=138550 TBR=joi Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149891

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : gtk #

Patch Set 4 : . #

Patch Set 5 : win? #

Patch Set 6 : rebase #

Patch Set 7 : tests? #

Patch Set 8 : cros? #

Patch Set 9 : win? #

Total comments: 4

Patch Set 10 : rebase #

Patch Set 11 : comment #

Patch Set 12 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -31 lines) Patch
M chrome/browser/favicon/favicon_tab_helper.h View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.cc View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/task_manager/task_manager_resource_providers.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/favicon_util_mac.mm View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_host.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ash/launcher/browser_launcher_item_controller.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/hung_renderer_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M content/public/browser/favicon_status.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/browser/favicon_status.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gfx/image/image.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M ui/gfx/image/image.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Nico
8 years, 4 months ago (2012-08-03 05:56:18 UTC) #1
jennb
http://codereview.chromium.org/10837090/diff/6009/chrome/browser/ui/panels/panel_host.cc File chrome/browser/ui/panels/panel_host.cc (right): http://codereview.chromium.org/10837090/diff/6009/chrome/browser/ui/panels/panel_host.cc#newcode66 chrome/browser/ui/panels/panel_host.cc:66: // TODO: Make this function return gfx::Image. What's needed ...
8 years, 4 months ago (2012-08-03 16:55:36 UTC) #2
pkotwicz
LGTM with nits http://codereview.chromium.org/10837090/diff/6009/chrome/browser/ui/views/hung_renderer_view.cc File chrome/browser/ui/views/hung_renderer_view.cc (right): http://codereview.chromium.org/10837090/diff/6009/chrome/browser/ui/views/hung_renderer_view.cc#newcode123 chrome/browser/ui/views/hung_renderer_view.cc:123: return *tab_observers_[row]->favicon_tab_helper()->GetFavicon().ToImageSkia(); Use AsImageSkia() instead to ...
8 years, 4 months ago (2012-08-03 17:07:43 UTC) #3
sky
LGTM
8 years, 4 months ago (2012-08-03 17:32:02 UTC) #4
Nico
Thanks! http://codereview.chromium.org/10837090/diff/6009/chrome/browser/ui/panels/panel_host.cc File chrome/browser/ui/panels/panel_host.cc (right): http://codereview.chromium.org/10837090/diff/6009/chrome/browser/ui/panels/panel_host.cc#newcode66 chrome/browser/ui/panels/panel_host.cc:66: // TODO: Make this function return gfx::Image. On ...
8 years, 4 months ago (2012-08-03 19:09:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/10837090/24
8 years, 4 months ago (2012-08-03 19:10:38 UTC) #6
commit-bot: I haz the power
Presubmit check for 10837090-24 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-03 19:10:48 UTC) #7
Nico
joi: another OWNERS stamp, please.
8 years, 4 months ago (2012-08-03 19:16:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/10837090/3030
8 years, 4 months ago (2012-08-03 19:19:15 UTC) #9
commit-bot: I haz the power
Try job failure for 10837090-3030 (retry) on mac for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-03 19:34:58 UTC) #10
Robert Sesek
+1 gfx::Image-ing favicons. -1 ui/gfx/image changes. This is a lot of unnecessary API surface. A ...
8 years, 4 months ago (2012-08-06 19:04:20 UTC) #11
Nico
On 2012/08/06 19:04:20, rsesek wrote: > +1 gfx::Image-ing favicons. > > -1 ui/gfx/image changes. This ...
8 years, 4 months ago (2012-08-06 19:26:39 UTC) #12
Robert Sesek
On 2012/08/06 19:26:39, Nico wrote: > On 2012/08/06 19:04:20, rsesek wrote: > > +1 gfx::Image-ing ...
8 years, 4 months ago (2012-08-06 19:36:06 UTC) #13
Nico
On 2012/08/06 19:36:06, rsesek wrote: > On 2012/08/06 19:26:39, Nico wrote: > > On 2012/08/06 ...
8 years, 4 months ago (2012-08-06 21:47:47 UTC) #14
Robert Sesek
On 2012/08/06 21:47:47, Nico wrote: > On 2012/08/06 19:36:06, rsesek wrote: > > On 2012/08/06 ...
8 years, 4 months ago (2012-08-09 19:20:27 UTC) #15
Robert Sesek
On 2012/08/09 19:20:27, rsesek wrote: > On 2012/08/06 21:47:47, Nico wrote: > > On 2012/08/06 ...
8 years, 4 months ago (2012-08-13 22:12:16 UTC) #16
Nico
8 years, 4 months ago (2012-08-13 22:15:27 UTC) #17
On Mon, Aug 13, 2012 at 3:12 PM,  <rsesek@chromium.org> wrote:
> On 2012/08/09 19:20:27, rsesek wrote:
>>
>> On 2012/08/06 21:47:47, Nico wrote:
>> > On 2012/08/06 19:36:06, rsesek wrote:
>> > > On 2012/08/06 19:26:39, Nico wrote:
>> > > > On 2012/08/06 19:04:20, rsesek wrote:
>> > > > > +1 gfx::Image-ing favicons.
>> > > > >
>> > > > > -1 ui/gfx/image changes. This is a lot of unnecessary API surface.
>> > > > > A
>
> lot
>>
>> > of
>> > > > the
>> > > > > places you use this already IsEmpty() check the image. And the
>> > > > > places
>> that
>> > > > don't
>> > > > > look temporary until this is fully gfx::Image'd.
>> > > >
>> > > > If you worry about api surface, i'd say the existing functions
>> > > > should
>> behave
>> > > > like the current functions instead. Null objects are much nicer to
>> > > > work
>> with
>> > > > than having to do IsEmpty() calls all over the place.
>> > >
>> > > Perhaps that change should be made
>> >
>> > I'll look at this. Ping me if it's not done by tomorrow morning.
>
>
>> Ping
>
>
>> >
>> > > they CHECK because for a while there was no
>> > > concept of an IsEmpty image. But these changes to gfx::Image are not
>> > > right
>> and
>> > > should be reverted before other clients start calling them.
>> >
>> > I don't think this is revert-worthy.
>
>
> * P I N G *

I have prototyped the "make all the calls explicit", it's somewhere on
my codereview. I have the other variant halfway done in a local branch
(I have another local branch to delete all the CopyToFoo() functions,
which appear even more pointless).

> I'm starting to think it is.

Uh huh.

>
> https://chromiumcodereview.appspot.com/10837090/

Powered by Google App Engine
This is Rietveld 408576698