diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-31 19:09:01 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-31 19:09:01 +0000 |
commit | 08ff58c867a17b9fe7dd6988d1eac83cb3b06df0 (patch) | |
tree | 7ce759f88a0d54c5f072673221d2aa182986e034 | |
parent | 9a97d7d84e6618a3c365bec9fd9709cbe59b1d1b (diff) | |
download | chromium_src-08ff58c867a17b9fe7dd6988d1eac83cb3b06df0.zip chromium_src-08ff58c867a17b9fe7dd6988d1eac83cb3b06df0.tar.gz chromium_src-08ff58c867a17b9fe7dd6988d1eac83cb3b06df0.tar.bz2 |
Fix crash in omnibox2 popup introduced by themes work. There was no widget to obtain a theme provider from in this case.
TBR=glen
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/118064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17304 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc index 7ba39cc..8ee1805 100644 --- a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc +++ b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc @@ -15,6 +15,7 @@ #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "app/theme_provider.h" +#include "app/win_util.h" #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" #include "chrome/browser/autocomplete/autocomplete_popup_model.h" #include "chrome/browser/views/autocomplete/autocomplete_popup_win.h" @@ -840,7 +841,7 @@ void AutocompletePopupContentsView::MakeContentsPath( void AutocompletePopupContentsView::UpdateBlurRegion() { // We only support background blurring on Vista with Aero-Glass enabled. - if (!GetThemeProvider()->ShouldUseNativeFrame() || !GetWidget()) + if (!win_util::ShouldUseVistaFrame() || !GetWidget()) return; // Provide a blurred background effect within the contents region of the |