Index: chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc |
=================================================================== |
--- chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc (revision 82144) |
+++ chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc (working copy) |
@@ -1369,13 +1369,13 @@ |
gfx::Size tab_contents_size; |
if (!GetTabContentsSize(&tab_contents_size)) |
return FALSE; |
- gfx::CanvasSkiaPaint canvas(event, true); |
+ gfx::CanvasSkiaPaint canvas_paint(event, true); |
gfx::Rect area = GTK_WIDGET_NO_WINDOW(widget) ? |
gfx::Rect(widget->allocation) : |
gfx::Rect(0, 0, widget->allocation.width, widget->allocation.height); |
- NtpBackgroundUtil::PaintBackgroundDetachedMode(theme_provider, &canvas, |
- area, tab_contents_size.height()); |
+ NtpBackgroundUtil::PaintBackgroundDetachedMode(theme_provider, |
+ canvas_paint.AsCanvas(), area, tab_contents_size.height()); |
} |
return FALSE; // Propagate expose to children. |