Index: ash/system/tray/tray_details_view.cc |
diff --git a/ash/system/tray/tray_details_view.cc b/ash/system/tray/tray_details_view.cc |
index 3f154afdf79cbbdd26c406432a929427e0aeaf21..1c4c34a4eb1933640263d967ce08f9b875f7a8de 100644 |
--- a/ash/system/tray/tray_details_view.cc |
+++ b/ash/system/tray/tray_details_view.cc |
@@ -65,19 +65,21 @@ class ScrollContentsView : public views::View { |
PositionHeaderRows(); |
} |
- void PaintChildren(const ui::PaintContext& context) override { |
- views::View::PaintChildren(context); |
+ void PaintChildren(const views::PaintInfo& paint_info) override { |
+ views::View::PaintChildren(paint_info); |
bool did_draw_shadow = false; |
// Paint header row separators. |
for (auto& header : headers_) |
- did_draw_shadow = PaintDelineation(header, context) || did_draw_shadow; |
+ did_draw_shadow = |
+ PaintDelineation(header, paint_info.context()) || did_draw_shadow; |
// Draw a shadow at the top of the viewport when scrolled, but only if a |
// header didn't already draw one. Overlap the shadow with the separator |
// that's below the header view so we don't get both a separator and a full |
// shadow. |
if (y() != 0 && !did_draw_shadow) |
- DrawShadow(context, gfx::Rect(0, 0, width(), -y() - kSeparatorWidth)); |
+ DrawShadow(paint_info.context(), |
+ gfx::Rect(0, 0, width(), -y() - kSeparatorWidth)); |
} |
void Layout() override { |