DescriptionAvoid 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 #Messages
Total messages: 5 (1 generated)
|