| Index: chrome/browser/ui/gtk/browser_toolbar_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/ui/gtk/browser_toolbar_gtk.cc (revision 82144)
|
| +++ chrome/browser/ui/gtk/browser_toolbar_gtk.cc (working copy)
|
| @@ -635,11 +635,12 @@
|
| }
|
|
|
| // Draw the chrome app menu icon onto the canvas.
|
| - gfx::CanvasSkiaPaint canvas(expose, false);
|
| + gfx::CanvasSkiaPaint canvas_paint(expose, false);
|
| + gfx::Canvas* canvas = canvas_paint.AsCanvas();
|
| int x_offset = base::i18n::IsRTL() ? 0 :
|
| sender->allocation.width - badge->width();
|
| int y_offset = 0;
|
| - canvas.DrawBitmapInt(
|
| + canvas->DrawBitmapInt(
|
| *badge,
|
| sender->allocation.x + x_offset,
|
| sender->allocation.y + y_offset);
|
|
|