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

Issue 1139773003: Avoid CHECK() failure when painting avatar menu button (Closed)

Created:
5 years, 7 months ago by robert.bradford
Modified:
5 years, 7 months ago
Reviewers:
yao, msw
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid CHECK() failure when painting avatar menu button Following the refactoring in https://codereview.chromium.org/1009403002 the Linux ChromiumOS Tests (dbg) browser_tests failed 22/25 times since this patch landed: http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/2094/ It looks like this was due to the empty gfx::Image being passed in to GetAvatarIconForTitleBar() being returned. It is not allowed to call ToImageSkia() on an empty gfx::Image. The alternative method AsImageSkia() will return an empty gfx::ImageSkia if the gfx::Image is empty. TBR=yiyaoliu@chromium.org,msw@chromium.org BUG=452524

Patch Set 1 #

Patch Set 2 : AsImageSkia() does not return a pointer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/browser/ui/views/profiles/avatar_menu_button.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
robert.bradford
5 years, 7 months ago (2015-05-12 12:21:45 UTC) #2
msw
lgtm if the refactoring is relanded.
5 years, 7 months ago (2015-05-12 16:55:01 UTC) #3
yao
Hi Robert, Thanks for working on this. Do you want me to combine this CL ...
5 years, 7 months ago (2015-05-13 19:32:12 UTC) #4
robert.bradford
5 years, 7 months ago (2015-05-14 10:59:37 UTC) #5
On 2015/05/13 19:32:12, yao wrote:
> Hi Robert, 
> 
> Thanks for working on this. Do you want me to combine this CL into my original
> refactoring CL? I don't wanna submit it and break try bots again if this CL is
> not landed soon enough after that. 
> 
> Thanks, 
> Yiyao

Yes, please roll it in if you think it's the right fix.

Powered by Google App Engine
This is Rietveld 408576698