diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 15:17:08 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 15:17:08 +0000 |
commit | a3c0ff2f030aeae7693cf9face34eb2b6ded4308 (patch) | |
tree | 9af339d5dec3a7d46045b99cd525bea19bd82e26 /chrome/browser/views/location_bar_view.cc | |
parent | 4c53eba29fc1af82454136df4522cfd3eab40d4a (diff) | |
download | chromium_src-a3c0ff2f030aeae7693cf9face34eb2b6ded4308.zip chromium_src-a3c0ff2f030aeae7693cf9face34eb2b6ded4308.tar.gz chromium_src-a3c0ff2f030aeae7693cf9face34eb2b6ded4308.tar.bz2 |
Gets info_bubble compiling on linux. This code has a ton of ifdefs. It
would be cleaner to refactor. I'll do that later on though. I've added
a TODO to that effect.
Review URL: http://codereview.chromium.org/113679
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16602 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/location_bar_view.cc')
-rw-r--r-- | chrome/browser/views/location_bar_view.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc index 20836d9..a2331f2 100644 --- a/chrome/browser/views/location_bar_view.cc +++ b/chrome/browser/views/location_bar_view.cc @@ -967,9 +967,7 @@ void LocationBarView::ShowFirstRunBubbleInternal(bool use_OEM_bubble) { if (UILayoutIsRightToLeft()) bounds.set_x(location.x() - 20); - FirstRunBubble::Show(profile_, - location_entry_view_->GetRootView()->GetWidget()->GetNativeView(), - bounds, use_OEM_bubble); + FirstRunBubble::Show(profile_, GetWindow(), bounds, use_OEM_bubble); } // LocationBarImageView--------------------------------------------------------- @@ -1037,8 +1035,7 @@ void LocationBarView::LocationBarImageView::ShowInfoBubbleImpl( label->SetHorizontalAlignment(views::Label::ALIGN_LEFT); label->SizeToFit(0); DCHECK(info_bubble_ == NULL); - info_bubble_ = InfoBubble::Show(GetRootView()->GetWidget()->GetNativeView(), - bounds, label, this); + info_bubble_ = InfoBubble::Show(GetWindow(), bounds, label, this); show_info_bubble_task_ = NULL; } |