diff options
Diffstat (limited to 'chrome/browser/views/frame/browser_view.cc')
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index c0476d5..b2fbe13a 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -22,7 +22,6 @@ #include "chrome/browser/views/clear_browsing_data.h" #include "chrome/browser/views/download_shelf_view.h" #include "chrome/browser/views/frame/browser_frame.h" -#include "chrome/browser/views/fullscreen_exit_bubble.h" #include "chrome/browser/views/html_dialog_view.h" #include "chrome/browser/views/importer_view.h" #include "chrome/browser/views/infobars/infobar_container.h" @@ -578,9 +577,7 @@ void BrowserView::SetFullscreen(bool fullscreen) { if (bookmark_bar_view_.get()) bookmark_bar_view_->OnFullscreenToggled(fullscreen_); - // Size/position/style window appropriately. - views::Widget* widget = GetWidget(); - HWND hwnd = widget->GetHWND(); + HWND hwnd = GetWidget()->GetHWND(); gfx::Rect new_rect; if (fullscreen_) { // Save current window information. @@ -608,10 +605,6 @@ void BrowserView::SetFullscreen(bool fullscreen) { // This will cause the window to re-layout. SetWindowPos(hwnd, NULL, new_rect.x(), new_rect.y(), new_rect.width(), new_rect.height(), SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED); - - // Turn fullscreen bubble on or off. - fullscreen_bubble_.reset(fullscreen_ ? - new FullscreenExitBubble(widget, browser_.get()) : NULL); } bool BrowserView::IsFullscreen() const { |