Index: chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc |
diff --git a/chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc b/chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc |
index be8c20e74069bb8591695f93019e396e0798866c..308b8689cf52caed5706355a82e73811911e1a5d 100644 |
--- a/chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc |
+++ b/chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc |
@@ -83,13 +83,14 @@ void TouchOmniboxPopupContentsView::PaintResultViews(gfx::Canvas* canvas) { |
// color of the line is determined to blend appropriately with the |
// most dominant of the two surrounding cells, in precedence order, |
// i.e. selected > hovered > normal. |
+ const ui::NativeTheme* theme = GetNativeTheme(); |
for (std::vector<View*>::const_iterator i(visible_children.begin()); |
i + 1 != visible_children.end(); ++i) { |
TouchOmniboxResultView* child = static_cast<TouchOmniboxResultView*>(*i); |
TouchOmniboxResultView* next_child = |
static_cast<TouchOmniboxResultView*>(*(i + 1)); |
SkColor divider_color = OmniboxResultView::GetColor( |
- std::max(child->GetState(), next_child->GetState()), |
+ theme, std::max(child->GetState(), next_child->GetState()), |
OmniboxResultView::DIVIDER); |
int line_y = child->y() + child->height() - 1; |
canvas->DrawLine(gfx::Point(bounds.x(), line_y), |