| Index: chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc b/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
|
| index 38783b088c9ba3740ee5a237316a48abeb60833b..827d167a7de943b81a0d9801649c15e5aa4595e7 100644
|
| --- a/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
|
| +++ b/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
|
| @@ -14,9 +14,9 @@
|
| LocationBarBubbleDelegateView::LocationBarBubbleDelegateView(
|
| views::View* anchor_view,
|
| content::WebContents* web_contents)
|
| - : BubbleDelegateView(anchor_view,
|
| - anchor_view ? views::BubbleBorder::TOP_RIGHT
|
| - : views::BubbleBorder::NONE) {
|
| + : BubbleDialogDelegateView(anchor_view,
|
| + anchor_view ? views::BubbleBorder::TOP_RIGHT
|
| + : views::BubbleBorder::NONE) {
|
| // Add observer to close the bubble if the fullscreen state changes.
|
| if (web_contents) {
|
| Browser* browser = chrome::FindBrowserWithWebContents(web_contents);
|
| @@ -39,19 +39,21 @@ void LocationBarBubbleDelegateView::ShowForReason(DisplayReason reason) {
|
| }
|
| }
|
|
|
| +int LocationBarBubbleDelegateView::GetDialogButtons() const {
|
| + return ui::DIALOG_BUTTON_NONE;
|
| +}
|
| +
|
| void LocationBarBubbleDelegateView::Observe(
|
| int type,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) {
|
| DCHECK_EQ(chrome::NOTIFICATION_FULLSCREEN_CHANGED, type);
|
| GetWidget()->SetVisibilityAnimationTransition(views::Widget::ANIMATE_NONE);
|
| - Close();
|
| + CloseBubble();
|
| }
|
|
|
| -void LocationBarBubbleDelegateView::Close() {
|
| - views::Widget* widget = GetWidget();
|
| - if (!widget->IsClosed())
|
| - widget->Close();
|
| +void LocationBarBubbleDelegateView::CloseBubble() {
|
| + GetWidget()->Close();
|
| }
|
|
|
| void LocationBarBubbleDelegateView::AdjustForFullscreen(
|
|
|