Index: chrome/browser/ui/views/omnibox/omnibox_result_view.cc |
diff --git a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc |
index c044521d25ed7e9228a6c0162f6dd21184710d3f..d76fe0bdc542acfd0d766a70ee3c01a702d0fa43 100644 |
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view.cc |
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.cc |
@@ -106,14 +106,14 @@ class OmniboxResultView::MirroringContext { |
OmniboxResultView::OmniboxResultView( |
OmniboxResultViewModel* model, |
int model_index, |
- views::View* location_bar, |
+ OmniboxViewDelegate* view_delegate, |
const gfx::Font& font) |
: edge_item_padding_(LocationBarView::GetItemPadding()), |
item_padding_(LocationBarView::GetItemPadding()), |
minimum_text_vertical_padding_(kMinimumTextVerticalPadding), |
model_(model), |
model_index_(model_index), |
- location_bar_(location_bar), |
+ view_delegate_(view_delegate), |
font_(font), |
font_height_(std::max(font.GetHeight(), |
font.DeriveFont(0, gfx::BOLD).GetHeight())), |
@@ -124,7 +124,7 @@ OmniboxResultView::OmniboxResultView( |
CHECK_GE(model_index, 0); |
if (default_icon_size_ == 0) { |
default_icon_size_ = |
- location_bar_->GetThemeProvider()->GetImageSkiaNamed( |
+ view_delegate_->GetThemeProviderForPopup()->GetImageSkiaNamed( |
AutocompleteMatch::TypeToIcon( |
AutocompleteMatchType::URL_WHAT_YOU_TYPED))->width(); |
} |
@@ -325,13 +325,13 @@ gfx::ImageSkia OmniboxResultView::GetIcon() const { |
break; |
} |
} |
- return *(location_bar_->GetThemeProvider()->GetImageSkiaNamed(icon)); |
+ return *(view_delegate_->GetThemeProviderForPopup()->GetImageSkiaNamed(icon)); |
} |
const gfx::ImageSkia* OmniboxResultView::GetKeywordIcon() const { |
// NOTE: If we ever begin returning icons of varying size, then callers need |
// to ensure that |keyword_icon_| is resized each time its image is reset. |
- return location_bar_->GetThemeProvider()->GetImageSkiaNamed( |
+ return view_delegate_->GetThemeProviderForPopup()->GetImageSkiaNamed( |
(GetState() == SELECTED) ? IDR_OMNIBOX_TTS_SELECTED : IDR_OMNIBOX_TTS); |
} |