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

Unified Diff: chrome/browser/ui/views/profiles/avatar_menu_button.cc

Issue 1139773003: Avoid CHECK() failure when painting avatar menu button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: AsImageSkia() does not return a pointer Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/avatar_menu_button.cc
diff --git a/chrome/browser/ui/views/profiles/avatar_menu_button.cc b/chrome/browser/ui/views/profiles/avatar_menu_button.cc
index 9d26f7076e7fafce1b5ce9330f78af96d7481208..5cf496fce62235746a4376617978538b2164cf64 100644
--- a/chrome/browser/ui/views/profiles/avatar_menu_button.cc
+++ b/chrome/browser/ui/views/profiles/avatar_menu_button.cc
@@ -63,8 +63,8 @@ void AvatarMenuButton::OnPaint(gfx::Canvas* canvas) {
if (old_height_ != height() || button_icon_.isNull()) {
old_height_ = height();
- button_icon_ = *profiles::GetAvatarIconForTitleBar(
- *icon_, is_rectangle_, width(), height()).ToImageSkia();
+ button_icon_ = profiles::GetAvatarIconForTitleBar(
+ *icon_, is_rectangle_, width(), height()).AsImageSkia();
}
// Scale the image to fit the width of the button.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698