Index: chrome/browser/ui/gtk/browser_window_gtk.cc |
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc |
index 85ba20ee72c0ceb139661f9b3350d5c9973b5b79..60fe1a79b1d7277e316b52fd082ba3349fab0f09 100644 |
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc |
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc |
@@ -926,10 +926,19 @@ void BrowserWindowGtk::EnterFullscreen( |
} |
void BrowserWindowGtk::UpdateFullscreenExitBubbleContent( |
- const GURL& url, |
+ const GURL& url, |
FullscreenExitBubbleType bubble_type) { |
- if (fullscreen_exit_bubble_.get()) |
- fullscreen_exit_bubble_->UpdateContent(url, bubble_type); |
+ if (bubble_type == FEB_TYPE_NONE) { |
+ fullscreen_exit_bubble_.reset(); |
+ } else if (fullscreen_exit_bubble_.get()) { |
+ fullscreen_exit_bubble_->UpdateContent(url, bubble_type); |
+ } else { |
+ fullscreen_exit_bubble_.reset(new FullscreenExitBubbleGtk( |
+ GTK_FLOATING_CONTAINER(render_area_floating_container_), |
+ browser(), |
+ url, |
+ bubble_type)); |
+ } |
} |
void BrowserWindowGtk::ExitFullscreen() { |